socketry / async

An awesome asynchronous event-driven reactor for Ruby.
MIT License
2.12k stars 86 forks source link

Fix handling of stop stopping the stopping task. #242

Closed ioquatix closed 1 year ago

ioquatix commented 1 year ago

Fixes https://github.com/socketry/async/issues/158.

It was possible to raise Stop on a different fiber, and if that fiber was a parent of the task that was invoking stop_children, it was possible to kill that task mid-iteration, which would prevent stopping the remaining children.

Types of Changes

Contribution