Home | Trees | Indices | Help |
---|
|
object --+ | Future
Result of an asynchronous operation.
Futures represent the result of an operation that has not yet completed. In Pike, they are most commonly used to track SMB2 request/response pairs, but they can be used for any asynchronous operation.
The result of a future can be waited for synchronously by simply calling Future.result, or a notification callback can be set with Future.then.
Futures implement the context manager interface so that they can be used as the context for a with block. If an exception is raised from the block, it will automatically be set as the result of the future.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
Initialize future.
|
Completes the future with the given result. Calling a future as a function is equivalent to calling this method.
|
Set interim response.
|
Wait for future result to become available.
|
Wait for interim response or actual result to become available.
|
Return result of future. If the result is not yet available, this function will wait for it. If the result is an exception, this function will raise it instead of returning it.
|
Set notification function.
|
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jun 29 08:51:17 2017 | http://epydoc.sourceforge.net |