|
| __init__ (self, handler, args=None, kwargs=None, executor=None) |
|
| __call__ (self) |
| Run or resume a task.
|
|
| executing (self) |
| Check if the task is currently being executed.
|
|
| __init__ (self, *executor=None) |
|
| __del__ (self) |
|
| __await__ (self) |
| Yield while the task is not finished.
|
|
| add_done_callback (self, callback) |
| Add a callback to be executed when the task is done.
|
|
| cancel (self) |
| Request cancellation of the running task if it is not done already.
|
|
| cancelled (self) |
| Indicate if the task has been cancelled.
|
|
| done (self) |
| Indicate if the task has finished executing.
|
|
| exception (self) |
| Get an exception raised by a done task.
|
|
| result (self) |
| Get the result of a done task.
|
|
| set_exception (self, exception) |
| Set the exception raised by the task.
|
|
| set_result (self, result) |
| Set the result returned by a task.
|
|
Executes a function or coroutine.
This executes either a normal function or a coroutine to completion. On completion it creates tasks for any 'done' callbacks.
Definition at line 187 of file task.py.