FiberPool.this

this(FiberScheduler sched, size_t initialSize = 0, size_t maxSize = 0) @trusted

Create a fiber pool.

Fibers are created lazily on the first spawn() calls, not in the constructor. The initialSize parameter reserves capacity but does not pre-allocate fiber stacks.

Parameters

schedThe scheduler that will execute pooled fibers.
initialSizeHint for pre-allocation capacity.
maxSizeMaximum pool size. 0 = unlimited.