EventLoop.registerIo

Token registerIo(Handle handle, IoInterest interest, IoWatcherCallback callback) @trusted nothrow

Register an I/O watcher with the selected backend.

Parameters

handleNative handle to watch.
interestRequested readiness mask.
callbackCallback invoked for matching readiness events.

Returns

New watcher token on success, or Token.invalid with errno set.