Add a convenience wrapper for spawn-with-handle-for-killing #8160
Labels
A-concurrency
Area: Concurrency
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
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.
The text was updated successfully, but these errors were encountered: