Skip to main content Link Search Menu Expand Document (external link)

FiberStatus overview

Added in v2.0.0


Table of contents


constructors

done

Signature

export declare const done: FiberStatus

Added in v2.0.0

running

Signature

export declare const running: (runtimeFlags: RuntimeFlags.RuntimeFlags) => FiberStatus

Added in v2.0.0

suspended

Signature

export declare const suspended: (runtimeFlags: RuntimeFlags.RuntimeFlags, blockingOn: FiberId.FiberId) => FiberStatus

Added in v2.0.0

models

Done (interface)

Signature

export interface Done extends Equal.Equal {
  readonly _tag: "Done"
  readonly [FiberStatusTypeId]: FiberStatusTypeId
}

Added in v2.0.0

FiberStatus (type alias)

Signature

export type FiberStatus = Done | Running | Suspended

Added in v2.0.0

Running (interface)

Signature

export interface Running extends Equal.Equal {
  readonly _tag: "Running"
  readonly [FiberStatusTypeId]: FiberStatusTypeId
  readonly runtimeFlags: RuntimeFlags.RuntimeFlags
}

Added in v2.0.0

Suspended (interface)

Signature

export interface Suspended extends Equal.Equal {
  readonly _tag: "Suspended"
  readonly [FiberStatusTypeId]: FiberStatusTypeId
  readonly runtimeFlags: RuntimeFlags.RuntimeFlags
  readonly blockingOn: FiberId.FiberId
}

Added in v2.0.0

refinements

isDone

Returns true if the specified FiberStatus is Done, false otherwise.

Signature

export declare const isDone: (self: FiberStatus) => self is Done

Added in v2.0.0

isFiberStatus

Returns true if the specified value is a FiberStatus, false otherwise.

Signature

export declare const isFiberStatus: (u: unknown) => u is FiberStatus

Added in v2.0.0

isRunning

Returns true if the specified FiberStatus is Running, false otherwise.

Signature

export declare const isRunning: (self: FiberStatus) => self is Running

Added in v2.0.0

isSuspended

Returns true if the specified FiberStatus is Suspended, false otherwise.

Signature

export declare const isSuspended: (self: FiberStatus) => self is Suspended

Added in v2.0.0

symbols

FiberStatusTypeId

Signature

export declare const FiberStatusTypeId: typeof FiberStatusTypeId

Added in v2.0.0

FiberStatusTypeId (type alias)

Signature

export type FiberStatusTypeId = typeof FiberStatusTypeId

Added in v2.0.0