The OpenD Programming Language

Fiber.reset

Resets this fiber so that it may be re-used, optionally with a new function/delegate. This routine should only be called for fibers that have terminated, as doing otherwise could result in scope-dependent functionality that is not executed. Stack-based classes, for example, may not be cleaned up properly if a fiber is reset before it has terminated.

In: This fiber must be in state TERM or HOLD.

  1. void reset()
    class Fiber
    final nothrow @nogc
    void
    reset
    ()
  2. void reset(void function() fn)
  3. void reset(void delegate() dg)

Meta