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

Function sendIgnore

packages/experimental/src/Machine.ts:554–572  ·  view source on GitHub ↗
(request: R)

Source from the content-addressed store, hash-verified

552 )
553
554 const sendIgnore = <R extends Machine.Public<M>>(request: R) =>
555 Effect.flatMap(
556 requestContext(request),
557 (item) => {
558 if (!item[3]) {
559 return Queue.offer(requests, item)
560 }
561 const [, deferred, span] = item
562 return Effect.useSpan(`Machine.sendIgnore ${request._tag}`, {
563 parent: span,
564 attributes: {
565 "effect.machine": runState.identifier,
566 ...request
567 },
568 kind: "client",
569 captureStackTrace: false
570 }, (span) => Queue.offer(requests, [request, deferred, span, true]))
571 }
572 )
573
574 const sendExternal = <R extends Machine.Public<M>>(request: R) =>
575 Effect.suspend(() =>

Callers

nothing calls this directly

Calls 2

requestContextFunction · 0.85
offerMethod · 0.65

Tested by

no test coverage detected