Promise.resolve

void resolve(T value) @trusted

Complete 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

valueThe value to resolve the future with.