( evaluate: LazyArg<Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>> )
| 547 | * @since 2.0.0 |
| 548 | */ |
| 549 | export const suspend = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>( |
| 550 | evaluate: LazyArg<Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>> |
| 551 | ): Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env> => |
| 552 | fromTransform((upstream, scope) => Effect.suspend(() => toTransform(evaluate())(upstream, scope))) |
| 553 | |
| 554 | /** |
| 555 | * Acquires a resource, uses it to build a `Channel`, and guarantees that |
no test coverage detected