Module ntex_util::future[][src]

Utilities for futures

Structs

Lazy

Future for the lazy function.

Enums

Either

Combines two different futures, streams, or sinks having the same associated types into a single type.

Ready

A future representing a value that is immediately ready.

Traits

Sink

A Sink is a value into which other values can be sent, asynchronously.

Stream

A stream of values produced asynchronously.

Functions

join

Future for the join combinator, waiting for two futures to complete.

join_all

Creates a future which represents a collection of the outputs of the futures given.

lazy

Creates a new future that allows delayed execution of a closure.

next

Creates a future that resolves to the next item in the stream.

poll_fn

Creates a new future wrapping around a function returning Poll.

select

Waits for either one of two differently-typed futures to complete.

send

A future that completes after the given item has been fully processed into the sink, including flushing.