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

Function contA

packages/effect/src/Micro.ts:1236–1241  ·  view source on GitHub ↗
(value, fiber)

Source from the content-addressed store, hash-verified

1234) => Micro<any, any, any> = makePrimitive({
1235 op: "Iterator",
1236 contA(value, fiber) {
1237 const state = this[args].next(value)
1238 if (state.done) return succeed(state.value)
1239 fiber._stack.push(this)
1240 return yieldWrapGet(state.value)
1241 },
1242 eval(this: any, fiber: MicroFiberImpl) {
1243 return this[successCont](undefined, fiber)
1244 }

Callers

nothing calls this directly

Calls 5

yieldWrapGetFunction · 0.85
bodyMethod · 0.80
nextMethod · 0.65
stepMethod · 0.65
succeedFunction · 0.50

Tested by

no test coverage detected