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

Function yieldWrapGet

packages/effect/src/Utils.ts:733–738  ·  view source on GitHub ↗
(self: YieldWrap<T>)

Source from the content-addressed store, hash-verified

731 * @since 3.0.6
732 */
733export function yieldWrapGet<T>(self: YieldWrap<T>): T {
734 if (typeof self === "object" && self !== null && YieldWrapTypeId in self) {
735 return self[YieldWrapTypeId]()
736 }
737 throw new Error(getBugErrorMessage("yieldWrapGet"))
738}
739
740/**
741 * Note: this is an experimental feature made available to allow custom matchers in tests, not to be directly used yet in user code

Callers 3

contAFunction · 0.85
fiberRuntime.tsFile · 0.85
runFunction · 0.85

Calls 1

getBugErrorMessageFunction · 0.85

Tested by

no test coverage detected