Create an empty selector or copy registrations, callbacks, and the readiness snapshot.
sourceOptionalStatic ReadonlyReceiveReceive-ready bit flag.
Static ReadonlySendSend-ready bit flag.
Register a live socket and readiness conditions; return false for duplicate or unopened sockets. Callbacks require explicit dispatch.
socketreadinesscallbackOptionalCopy another selector's registrations and snapshot, returning this. No wait may currently be pending.
sourceClear registrations and readiness results, waking any pending wait.
Synchronously call registered callbacks for ready entries in the last wait.
Check whether the latest wait snapshot contains the given readiness.
socketreadinessRemove a socket and its readiness results, returning whether it was registered; wake any pending wait.
socketWait asynchronously and refresh the readiness snapshot. Time.Zero disables the timeout; return whether any entry is ready. Concurrent wait calls are not allowed.
timeout
Wait asynchronously for a set of sockets to become ready, retaining the results of the latest wait.