Method Concurrent.resolve()
- Method resolve
Future
resolve(mixed
value
)- Returns
A new Future that has already been fulfilled with
value
as result. Ifvalue
is an object which already hasfailure
andsuccess
methods, return it unchanged.- Note
This function can be used to ensure values are futures.
- See also
Future.on_success(), Promise.success() https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise