FiberHandle

A handle to a running fiber.

This handle expires automatically when the fiber stops running. Unless you know, semantically, that a fiber is still running, don't assume there is a running fiber attached to this handle.

The handle will correctly claim invalidity even if a new fiber is launched with the same FiberId.

Constructors

this
this(ReactorFiber* fib)
Undocumented in source.

Members

Functions

get
ReactorFiber* get()
Undocumented in source. Be warned that the author may not have intended to support it.
getFiberId
FiberId getFiberId()

returns the original FiberId set for the handle, whether still valid or not

opAssign
auto ref opAssign(ReactorFiber* fib)
Undocumented in source. Be warned that the author may not have intended to support it.
reset
void reset()

Reset the handle to uninitialized state

Properties

fiberId
FiberId fiberId [@property getter]

the FiberId described by the handle. If the handle is no longer valid, will return FiberId.invalid

isSet
bool isSet [@property getter]

Returns whether the handle was set

isValid
bool isValid [@property getter]

Returns whether the handle currently describes a running fiber.

Meta