Add Crystal::EventLoop#resume_all to replace #reopened#16145
Add Crystal::EventLoop#resume_all to replace #reopened#16145ysbaddaden wants to merge 1 commit intocrystal-lang:masterfrom
Crystal::EventLoop#resume_all to replace #reopened#16145Conversation
Allows to distinguish the "resume all waiters" from the actual "close" actions. Optional and only called on UNIX targets. It replaces the now obsolete `#reopened` hook.
055ee41 to
9c6296c
Compare
|
Changed state to DRAFT. We shall talk a bit on the API: do we want this general (I'm also wondering if we'll have to cancel the submitted async requests with |
|
We probably want See #10740 (comment) |
|
Closing. We want distinct hooks, one after reopen and one before close. Both actions may be handled the same way, but may also be handled differently. |
Allows to distinguish the "resume all waiters" from the actual "close" action. Only called on UNIX targets for now.
Extracted from #16128 and renamed from
#before_closeto#resume_alland replaces the now obsolete#reopenedhook.