Method Concurrent.resolve()
- Method
resolve
Futureresolve(mixedvalue)- Returns
A new Future that has already been fulfilled with
valueas result. Ifvalueis an object which already has on_failure andon_successmethods, return it unchanged.- Note
This function can be used to ensure values are futures.
- Note
The returned Future does NOT have a backend set.
- See also
Future.on_success(), Promise.success() https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise