Skip to main content

Home > flowp > Future > reject

Future.reject property

reject the future with given value.

the method has already bound to this, so you can write emitter.on('error', future.reject)

Signature:

get reject(): (error?: unknown) => void;