Future.get

T get() @trusted

Retrieve the value from a resolved future.

Returns

The value that the promise resolved with.

Throws

FutureError if the future is not yet resolved or was rejected.