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

Class Emit

packages/effect/src/internal/channel/subexecutor.ts:215–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213
214/** @internal */
215export class Emit<in out R> implements Subexecutor<R> {
216 readonly _tag: OP_EMIT = OP_EMIT
217
218 constructor(readonly value: unknown, readonly next: Subexecutor<R>) {
219 }
220
221 close(exit: Exit.Exit<unknown, unknown>): Effect.Effect<unknown, never, R> | undefined {
222 const result = this.next.close(exit)
223 return result === undefined ? result : result
224 }
225
226 enqueuePullFromChild(_child: PullFromChild<R>): Subexecutor<R> {
227 return this
228 }
229}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected