react-async-states icon indicating copy to clipboard operation
react-async-states copied to clipboard

Add a way to bailout a producer run

Open incepter opened this issue 2 years ago • 0 comments

Now, when the producer starts working, it cannot be stopped and state is updated.

We need a way to stop running before the first promise encounter.

something like:

props.bailout(reason);

props.dontRun(reason);

props.abort(); // already exists, but passes the status to aborted and not what we need

incepter avatar Sep 05 '22 09:09 incepter