InterestSuspensionsMap
A thread-safe map that manages suspensions for different SelectInterest types.
This class is used internally by the selector to track coroutine continuations waiting for specific I/O operations (read, write, accept, connect) to become ready.
Functions
Link copied to clipboard
Registers a suspension continuation for the specified interest.
Link copied to clipboard
Invokes the given block for each registered suspension, regardless of ready state. The suspensions are removed from the map before invoking the block. This is typically used for cleanup or cancellation.
Link copied to clipboard
Removes and returns the suspension registered for the specified interest.
Removes and returns the suspension registered for the interest at the given ordinal index.