Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Scheduler] Bugfix: Cancelling a continuation #16151

Merged
merged 1 commit into from
Jul 22, 2019

Conversation

acdlite
Copy link
Collaborator

@acdlite acdlite commented Jul 17, 2019

Cancelling the original task should also cancel its continuation.

Cancelling the original task should also cancel its continuation.
@sizebot
Copy link

sizebot commented Jul 17, 2019

No significant bundle size changes to report.

Generated by 🚫 dangerJS

next: null,
previous: null,
};
var continuationTask = task;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it desirable to mutate task.callback, task.next and task.previous? if not, the task object needs to be copied, not simply assigned.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's on purpose.

@acdlite acdlite requested a review from bvaughn July 22, 2019 18:13
@acdlite acdlite merged commit 2bd88e3 into facebook:master Jul 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants