FiberStatus
Constructors
Signature
declare const done: FiberStatus;Signature
declare const running: (runtimeFlags: RuntimeFlags.RuntimeFlags) => FiberStatus;Signature
declare const suspended: (
runtimeFlags: RuntimeFlags.RuntimeFlags,
blockingOn: FiberId.FiberId,
) => FiberStatus;Models
Signature
interface Done extends Equal {
readonly _tag: "Done";
readonly [FiberStatusTypeId]: typeof FiberStatusTypeId;
}FiberStatus type
Added in v2.0.0
Source
Signature
type FiberStatus = Done | Running | Suspended;Signature
interface Running extends Equal {
readonly _tag: "Running";
readonly [FiberStatusTypeId]: typeof FiberStatusTypeId;
readonly runtimeFlags: RuntimeFlags;
}Signature
interface Suspended extends Equal {
readonly _tag: "Suspended";
readonly [FiberStatusTypeId]: typeof FiberStatusTypeId;
readonly blockingOn: FiberId;
readonly runtimeFlags: RuntimeFlags;
}Refinements
Signature
declare const isDone: (self: FiberStatus) => self is Done;isFiberStatus
Added in v2.0.0
Source
Returns true if the specified value is a FiberStatus, false otherwise.
Signature
declare const isFiberStatus: (u: unknown) => u is FiberStatus;Returns true if the specified FiberStatus is Running, false otherwise.
Signature
declare const isRunning: (self: FiberStatus) => self is Running;isSuspended
Added in v2.0.0
Source
Returns true if the specified FiberStatus is Suspended, false otherwise.
Signature
declare const isSuspended: (self: FiberStatus) => self is Suspended;Symbols
FiberStatusTypeId
Added in v2.0.0
Source
Signature
declare const FiberStatusTypeId: unique symbol;FiberStatusTypeId type
Added in v2.0.0
Source
Signature
type FiberStatusTypeId = typeof FiberStatusTypeId;
Returns
trueif the specifiedFiberStatusisDone,falseotherwise.