Write me.
This decorator is used to construct asynchronous generators, to be used in combination with functions that return InProgress objects (such as those functions decorated with kaa.coroutine() or kaa.threaded()).
Parameters: | generic – if True, a Generator object is passed as the first argument to the decorated function. This can be used for functions which have not been previously decoratored with a supported decorator (such as @coroutine or @threaded). |
---|
Generator for InProgress objects
kaa.Generator
finish() | Finish the generator, the result will be ignored |
---|---|
send() | Send a new value (producer) |
throw() | Throw an error, this will stop the generator |
Finish the generator, the result will be ignored
Send a new value (producer)
Throw an error, this will stop the generator