resolved

fnFuture!T resolved(T)(T value) @safe

Create an already-resolved future with the given value.

This is useful when you need to return a future from a function but the value is already available synchronously.

Parameters

valueThe value to resolve the future with.

Returns

A future that is already resolved with the given value.