(self, callback, name)
Check whether the given callback is a coroutine or not.
Check whether the given callback is a coroutine or not.
Check whether the given callback is a coroutine or not .
def _check_not_coroutine(self, callback, name):
        """Check whether the given callback is a coroutine or not."""
        if (coroutines.iscoroutine(callback) or coroutines.iscoroutinefunction(callback)):
            raise TypeError("coroutines cannot be used with {}()".format(name))
def _check_not_coroutine ( self , callback , name ) : if ( coroutines . iscoroutine ( callback ) or coroutines . iscoroutinefunction ( callback ) ) : raise TypeError ( "coroutines cannot be used with {}()" . format ( name ) )