socketry / async

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

Ensure all tasks are terminated before closing scheduler. #219

Closed ioquatix closed 1 year ago

ioquatix commented 1 year ago

It's possible for some tasks to remain after the scheduler is closed. If those tasks performed asynchronous IO, which took a write lock, this could lead to subsequent deadlocks, e.g. https://github.com/socketry/io-event/issues/54

Types of Changes

Contribution