Skip to main content

Home > flowp > Future > resolve

Future.resolve property

resolve the future with given value

tips: the method has already bound to this, so you can write emitter.on('event', future.resolve)

Signature:

get resolve(): (value: T | PromiseLike<T>) => void;