Fiber.this

Initializes a fiber object which is associated with a static D function.

  1. this(void function() fn, size_t sz, size_t guardPageSize)
    class Fiber
    nothrow
    this
    (
    void function
    ()
    fn
    ,
    size_t sz = pageSize * defaultStackPages
    ,)
  2. this(void delegate() dg, size_t sz, size_t guardPageSize)

Parameters

fn void function
()

The fiber function.

sz size_t

The stack size for this fiber.

guardPageSize size_t

size of the guard page to trap fiber's stack overflows. Beware that using this will increase the number of mmaped regions on platforms using mmap so an OS-imposed limit may be hit.

In: fn must not be null.

Meta