Module ntex_util::future

source ·
Expand description

Utilities for futures

Structs

Enums

  • Combines two different futures, streams, or sinks having the same associated types into a single type.
  • A future representing a value that is immediately ready.

Traits

  • A Sink is a value into which other values can be sent, asynchronously.
  • A stream of values produced asynchronously.
  • A convenience for futures that return Result values that includes a variety of adapters tailored to such futures.

Functions

  • Future for the join combinator, waiting for two futures to complete.
  • Creates a future which represents a collection of the outputs of the futures given.
  • Creates a new future that allows delayed execution of a closure.
  • Waits for either one of two differently-typed futures to complete.
  • A future that completes after the given item has been fully processed into the sink, including flushing.
  • Creates a future that resolves to the next item in the stream.

Type Aliases

  • An owned dynamically typed Future for use in cases where you can’t statically type your result or need to add some indirection.