Skip to content

Commit

Permalink
Add note about cancelAll w/ resetState option
Browse files Browse the repository at this point in the history
  • Loading branch information
maxfierke committed Feb 15, 2021
1 parent 19f9e9d commit e359528
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UPGRADING-2.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ depend on cancelation to finish by awaiting the value of the promise returned by
the cancelation methods on `Task` and `TaskInstance`, `cancelAll` and `cancel`,
respectively.

It should be noted that when calling `cancelAll` with `{ resetState: true }`, the
state reset does not take effect immediately, as it did in e-c 1.x, but happens
on cancelation finalization, making it important to `await` calls to `cancelAll`.

For example,

```javascript
Expand Down

0 comments on commit e359528

Please sign in to comment.