FiberSocket.create

FiberSocket create(FiberScheduler sched, ref EventLoop loop) static @trusted nothrow

Create a FiberSocket bound to the given scheduler and event loop.

The socket is not connected. Call connect() or adopt() before performing I/O.

Parameters

schedThe fiber scheduler that manages the calling fiber.
loopThe event loop to register I/O watchers on.

Returns

A new, unconnected FiberSocket.