(body: Function, ...pipeables: Array<any>)
| 1423 | |
| 1424 | /** @internal */ |
| 1425 | export 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 */ |
| 1443 | export const withConcurrency = dual< |
nothing calls this directly
no test coverage detected