thrift.util.future

Undocumented in source.

Members

Classes

TFutureAggregatorRange
class TFutureAggregatorRange(T)

An input range that aggregates results from multiple asynchronous operations, returning them in the order they arrive.

TFutureException
class TFutureException
TPromise
class TPromise(ResultType)

A TFuture covering the simple but common case where the result is simply set by a call to succeed()/fail().

Enums

TFutureStatus
enum TFutureStatus

The states the operation offering a future interface can be in.

Functions

tFutureAggregatorRange
TFutureAggregatorRange!T tFutureAggregatorRange(TFuture!T[] futures, TCancellationOrigin childCancellation, Duration timeout)

TFutureAggregatorRange construction helper to avoid having to explicitly specify the value type, i.e. to allow the constructor being called using IFTI (see $(DMDBUG 6082, D Bugzilla enhancement requet 6082)).

Interfaces

TFuture
interface TFuture(ResultType)

Represents an operation which is executed asynchronously and the result of which will become available at some point in the future.

Templates

TFutureInterface
template TFutureInterface(Interface)

Creates an interface that is similar to a given one, but accepts an additional, optional TCancellation parameter each method, and returns TFutures instead of plain return values.

Meta