promise
Create a new promise/future pair.
This is the primary way to create futures. The returned promise can be used to complete the associated future.
Parameters
T | The type of value the future will hold. |
Returns
A new promise that can be used to complete its associated future.