Module finchers_core::task
[−]
[src]
Components for constructing asynchronous computations which will be returned from Endpoint
s.
The main trait in this module is Task
.
This trait is an abstraction of asynchronous computations which will be returned from endpoints.
The role of this trait is very close to futures
and hence its design intentionally resembles
Future
. However, some differences are exist for specializing to the purpose of HTTP handling.
This trait does not provide any combinators for composing complicate computations.
Such combinations are usually performed indirectly by the endpoints or by wrapping the value of
Future
.
Structs
Abort |
A |
Context |
The contextual information during polling an task. |
Ready |
A |
TaskFuture |
A helper struct which wraps a |
Traits
IntoTask |
Trait representing the conversion to a |
Task |
Trait representing the asynchronous computation after applying the endpoints. |
Functions
abort |
Create a task which will immediately abort the computation with an error value of |
future |
Create a task from a |
ready |
Create a task which will immediately return a value of |