View source code
Display the source code in std/concurrency.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

std.concurrency.Generator.this - multiple declarations

Function Generator.this

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

this (
  void function() fn
);

Parameters

NameDescription
fn The fiber function.

In

fn must not be null.

Function Generator.this

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

this (
  void function() fn,
  size_t sz
);

Parameters

NameDescription
fn The fiber function.
sz The stack size for this fiber.

In

fn must not be null.

Function Generator.this

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

this (
  void function() fn,
  size_t sz,
  size_t guardPageSize
);

Parameters

NameDescription
fn The fiber function.
sz The stack size for this fiber.
guardPageSize size of the guard page to trap fiber's stack overflows. Refer to core.thread.Fiber's documentation for more details.

In

fn must not be null.

Function Generator.this

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

this (
  void delegate() dg
);

Parameters

NameDescription
dg The fiber function.

In

dg must not be null.

Function Generator.this

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

this (
  void delegate() dg,
  size_t sz
);

Parameters

NameDescription
dg The fiber function.
sz The stack size for this fiber.

In

dg must not be null.

Function Generator.this

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

this (
  void delegate() dg,
  size_t sz,
  size_t guardPageSize
);

Parameters

NameDescription
dg The fiber function.
sz The stack size for this fiber.
guardPageSize size of the guard page to trap fiber's stack overflows. Refer to core.thread.Fiber's documentation for more details.

In

dg must not be null.

Authors

Sean Kelly, Alex Rønne Petersen, Martin Nowak

License

Boost License 1.0.