MCPcopy Create free account
hub / github.com/datner/react-effect / interruptIfRunning

Method interruptIfRunning

src/internal/fiberStore.ts:94–104  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

92 }
93 }
94 public interruptIfRunning() {
95 if (this.fiberState) {
96 Effect.runFork(
97 Effect.zipRight(
98 Ref.set(this.fiberState.interruptedRef, true),
99 this.fiberState.fiber.interruptAsFork(this.fiberState.fiber.id())
100 )
101 )
102 this.fiberState = undefined
103 }
104 }
105 private maybeResume() {
106 if (!this.fiberState && this.stream) {
107 this.run(this.stream)

Callers 2

FiberStoreImplClass · 0.95
runMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected