FiberSocket wrapping the adopted connection, or an
unconnected FiberSocket if adoption failed.
FiberSocket adopt(FiberScheduler sched, ref EventLoop loop,
Handle clientHandle) static @trusted nothrowCreate a FiberSocket by adopting an already-connected handle.
Used in server accept loops where TcpListener.onAccept provides a Handle for the newly accepted client.
sched | The fiber scheduler that manages the calling fiber. |
loop | The event loop the handle was registered on. |
clientHandle | The OS handle from onAccept. |
FiberSocket wrapping the adopted connection, or an
unconnected FiberSocket if adoption failed.