MCPcopy Index your code
hub / github.com/Effect-TS/effect / None

Class None

packages/effect/src/internal/fiberId.ts:41–64  ·  view source on GitHub ↗

@internal

Source from the content-addressed store, hash-verified

39
40/** @internal */
41class None implements FiberId.None {
42 readonly [FiberIdTypeId]: FiberId.FiberIdTypeId = FiberIdTypeId
43 readonly _tag = OP_NONE
44 readonly id = -1
45 readonly startTimeMillis = -1;
46 [Hash.symbol](): number {
47 return emptyHash
48 }
49 [Equal.symbol](that: unknown): boolean {
50 return isFiberId(that) && that._tag === OP_NONE
51 }
52 toString() {
53 return format(this.toJSON())
54 }
55 toJSON() {
56 return {
57 _id: "FiberId",
58 _tag: this._tag
59 }
60 }
61 [NodeInspectSymbol]() {
62 return this.toJSON()
63 }
64}
65
66/** @internal */
67class Runtime implements FiberId.Runtime {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected