ReadonlycancelReadonlyeitherReadonlyinspectReadonlymapReadonlymReadonlyononCancel: attaches work to free when the chain is canceled.
The creator of the work is the only one who knows how to stop it — attach that knowledge here and cancel will call it. Attaching to an already-canceled chain releases immediately, so late work never leaks.
ReadonlyonReadonlyonReadonlyononPending: A function that notifies the consuming function of the pending state.
Upon invocation it will pass true to the consumer. Once the call has finished it will pass false to the consumer.
ReadonlyonReadonlyorReadonlyorReadonlyorReadonlyvalue
The AsyncResult is something that Damien LeBerrigaud has introduced me to. I had the chance to work with him on a project that inspired me to write this lib. Together we collaborated on React Redux Starter to aid us in developing future projects with clients.
The type allows you to work with a promise in the same way you would work with a Result, with some extra helpers.
A factory for creating AsyncResult's
See