Skip to content

Add a convenience wrapper for spawn-with-handle-for-killing #8160

Closed
@bblum

Description

@bblum

Spawning a child task with the ability to kill it at any moment by using a returned 'task handle' is not directly supported, but can be emulated by spawning an extra task into the child's taskgroup (supervised or unlinked, doesn't matter), and having that task do a select2 on (a) a kill signal port with the parent on the other end, and (b) an on-exit notify_port with the child on the other end.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-concurrencyArea: ConcurrencyE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions