Struct FiberHandle
A handle to a running fiber.
struct FiberHandle
;
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.
Properties
Name | Type | Description |
---|---|---|
fiberId [get]
|
mecca | the FiberId described by the handle. If the handle is no longer valid, will return FiberId.invalid
|
isSet [get]
|
bool | Returns whether the handle was set |
isValid [get]
|
bool | Returns whether the handle currently describes a running fiber. |
Methods
Name | Description |
---|---|
getFiberId
|
returns the original FiberId set for the handle, whether still valid or not
|
reset
|
Reset the handle to uninitialized state |