Skip to content

Add subtask.cancel/task.cancel built-ins#506

Merged
lukewagner merged 4 commits into
mainfrom
cancel-subtask
Apr 30, 2025
Merged

Add subtask.cancel/task.cancel built-ins#506
lukewagner merged 4 commits into
mainfrom
cancel-subtask

Conversation

@lukewagner
Copy link
Copy Markdown
Member

This PR adds the subtask.cancel/task.cancel built-ins as sketched in #495 to support subtask cancellation. For a high-level summary, see the new "Cancellation" section added to Async.md in this PR.

Comment thread design/mvp/Explainer.md Outdated
Comment thread design/mvp/Explainer.md Outdated
Comment thread design/mvp/Async.md Outdated
Comment thread design/mvp/Async.md Outdated
@lukewagner lukewagner merged commit ffcbfde into main Apr 30, 2025
2 checks passed
@lukewagner lukewagner deleted the cancel-subtask branch April 30, 2025 16:22
(canon subtask.cancel (core func $f))
```
validation specifies:
* `$f` is given type `(func (param i32))`
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

May I ask if this should've been (func (param i32) (result i32))?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, you're right; good catch, and thanks! Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants