Promise.resolve
void resolve(T value) @trustedComplete the promise successfully with a value.
All registered then callbacks will be invoked with the value. Subsequent calls to resolve or reject are ignored.
Parameters
value | The value to resolve the future with. |