cancelled

fnFuture!T cancelled(T)() @safe

Create an already-cancelled future.

This is useful when you need to return a future from a function but the operation was already cancelled synchronously.

Parameters

TThe type parameter for the future.

Returns

A future that is already cancelled.