A manual promise that also exposes its resolve and reject functions.
resolve
reject
The user must take care to always call either resolve or reject at least once, otherwise clients waiting for the promise may wait forever.
promise
A manual promise that also exposes its
resolveandrejectfunctions.The user must take care to always call either
resolveorrejectat least once, otherwise clients waiting for thepromisemay wait forever.