Module futures
Source - test
- GenericCodec
- Codec to pass over any struct that implements
Serialize and DeserializeOwned traits. - GenericLinesCodec
- WithRetriesOptions
- wait
- Asynchronously wait for
ms milliseconds. - wait_micros
- Asynchronously wait for
micros microseconds. - wait_nanos
- Asynchronously wait for
nanos nanoseconds. - wait_random
- Asynchronously wait for some
random number of milliseconds. - with_retries
- !Experimental! Might be unstable in regard of runtime stability and API surface.
- with_stop
- Wrap a future into one that can be stopped at any given
moment by invoking a returned
stop function. - with_thread
- Run a future on a separate thread.
- with_timeout
- Runs a future to completion or to timeout, whatever happens first.