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

Function fnUntraced

packages/effect/src/internal/core.ts:1425–1440  ·  view source on GitHub ↗
(body: Function, ...pipeables: Array<any>)

Source from the content-addressed store, hash-verified

1423
1424/** @internal */
1425export const fnUntraced: Effect.fn.Untraced = (body: Function, ...pipeables: Array<any>) =>
1426 Object.defineProperty(
1427 pipeables.length === 0
1428 ? function(this: any, ...args: Array<any>) {
1429 return fromIterator(() => body.apply(this, args))
1430 }
1431 : function(this: any, ...args: Array<any>) {
1432 let effect = fromIterator(() => body.apply(this, args))
1433 for (const x of pipeables) {
1434 effect = x(effect, ...args)
1435 }
1436 return effect
1437 },
1438 "length",
1439 { value: body.length, configurable: true }
1440 )
1441
1442/* @internal */
1443export const withConcurrency = dual<

Callers

nothing calls this directly

Calls 1

fromIteratorFunction · 0.85

Tested by

no test coverage detected