resume ()
Call this after every yield in a task
This function returns the event that caused the task to resume, or
reraises any exceptions thrown by a nested generator in the task. It
should be called after every yield statement in a task, if the
statement yields a generator or an ITaskSwitch or IEventSource .
(If the statement simply yields a value to its calling generator, it need
not be followed by an events.resume() call.)
Note that you should still call this function even if you don't need its
return value. Otherwise, errors from other generators will be silently
lost.
|