cancelled
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
T | The type parameter for the future. |
Returns
A future that is already cancelled.