Generator.this

this(void function() fn)

Initializes a generator object which is associated with a static D function. The function will be called once to prepare the range for iteration.

Parameters

fnThe fiber function. In: fn must not be null.
this(void function() fn, size_t sz)

Initializes a generator object which is associated with a static D function. The function will be called once to prepare the range for iteration.

Parameters

fnThe fiber function.
szThe stack size for this fiber. In: fn must not be null.
this(void function() fn, size_t sz, size_t guardPageSize)

Initializes a generator object which is associated with a static D function. The function will be called once to prepare the range for iteration.

Parameters

fnThe fiber function.
szThe stack size for this fiber.
guardPageSizesize of the guard page to trap fiber's stack overflows. Refer to Fiber's documentation for more details. In: fn must not be null.
this(void delegate() dg)

Initializes a generator object which is associated with a dynamic D function. The function will be called once to prepare the range for iteration.

Parameters

dgThe fiber function. In: dg must not be null.
this(void delegate() dg, size_t sz)

Initializes a generator object which is associated with a dynamic D function. The function will be called once to prepare the range for iteration.

Parameters

dgThe fiber function.
szThe stack size for this fiber. In: dg must not be null.
this(void delegate() dg, size_t sz, size_t guardPageSize)

Initializes a generator object which is associated with a dynamic D function. The function will be called once to prepare the range for iteration.

Parameters

dgThe fiber function.
szThe stack size for this fiber.
guardPageSizesize of the guard page to trap fiber's stack overflows. Refer to Fiber's documentation for more details. In: dg must not be null.