-
-
Notifications
You must be signed in to change notification settings - Fork 572
Harden Queue#take's cancelation properties #2920
Copy link
Copy link
Closed
Description
take must have the property such that it either does not remove the element, or it removes the element and returns it, even when canceled. Thus the whole thing must be uncancelable aside from an atomic poll (when semantic blocking is needed). Without this property, it is possible in rare race conditions to cancel a take and lose data.
Applies to both the existing Concurrent queue and the new Async queue in #2885
Reactions are currently unavailable