resolve

fun resolve(value: Result<V, E>)

Resolve the promise, notifying any pending callbacks.

If a promise is resolved twice, the second invocation of resolve() will be ignored.