Skip to content

Commit

Permalink
Disable require-atomic-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Oct 27, 2021
1 parent 359e9cd commit f6c52c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/execution/executor.ts
Expand Up @@ -1772,6 +1772,8 @@ export class Executor {
await Promise.all(
exeContext.iterators.map((iterator) => iterator.return?.()),
);
// no updates will be missed, transitions only happen to `done` state
// eslint-disable-next-line require-atomic-updates
exeContext.isDone = true;
return { value: undefined, done: true };
}
Expand All @@ -1783,6 +1785,8 @@ export class Executor {
await Promise.all(
exeContext.iterators.map((iterator) => iterator.return?.()),
);
// no updates will be missed, transitions only happen to `done` state
// eslint-disable-next-line require-atomic-updates
exeContext.isDone = true;
return Promise.reject(error);
}
Expand Down

0 comments on commit f6c52c6

Please sign in to comment.