resolved
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
value | The value to resolve the future with. |
Returns
A future that is already resolved with the given value.