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

NameTypeDescription
fiberId[get] mecca.lib.typedid.RawTypedIdentifier!("FiberId",ushort,65535,65535,mecca.log.FMT("0x{_value!%04X}"),false)the FiberId described by the handle. If the handle is no longer valid, will return FiberId.invalid
isSet[get] boolReturns whether the handle was set
isValid[get] boolReturns whether the handle currently describes a running fiber.

Methods

NameDescription
getFiberId returns the original FiberId set for the handle, whether still valid or not
reset Reset the handle to uninitialized state