FiberStatus
Constructors
Signature
declare const done: FiberStatusSignature
declare const running: (runtimeFlags: RuntimeFlags.RuntimeFlags) => FiberStatusSignature
declare const suspended: (runtimeFlags: RuntimeFlags.RuntimeFlags, blockingOn: FiberId.FiberId) => FiberStatusModels
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 | SuspendedSignature
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
Returns true if the specified FiberStatus is Done, false otherwise.
Signature
declare const isDone: (self: FiberStatus) => self is DoneisFiberStatus
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 FiberStatusReturns true if the specified FiberStatus is Running, false
otherwise.
Signature
declare const isRunning: (self: FiberStatus) => self is RunningisSuspended
Added in v2.0.0
Source
Returns true if the specified FiberStatus is Suspended, false
otherwise.
Signature
declare const isSuspended: (self: FiberStatus) => self is SuspendedSymbols
FiberStatusTypeId
Added in v2.0.0
Source
Signature
declare const FiberStatusTypeId: unique symbolFiberStatusTypeId type
Added in v2.0.0
Source
Signature
type FiberStatusTypeId = typeof FiberStatusTypeId