MCPcopy
hub / github.com/Effect-TS/effect / shutdown

Method shutdown

packages/effect/src/internal/pubsub.ts:1163–1173  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1161 }
1162
1163 get shutdown(): Effect.Effect<void> {
1164 return core.uninterruptible(core.withFiberRuntime((state) => {
1165 pipe(this.shutdownFlag, MutableRef.set(true))
1166 return pipe(
1167 this.scope.close(core.exitInterrupt(state.id())),
1168 core.zipRight(this.strategy.shutdown),
1169 core.whenEffect(core.deferredSucceed(this.shutdownHook, void 0)),
1170 core.asVoid
1171 )
1172 }))
1173 }
1174
1175 publish(value: A): Effect.Effect<boolean> {
1176 return core.suspend(() => {

Callers

nothing calls this directly

Calls 4

pipeFunction · 0.70
setMethod · 0.65
closeMethod · 0.65
idMethod · 0.65

Tested by

no test coverage detected