( evaluate: LazyArg<Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>> )
| 600 | * @since 2.0.0 |
| 601 | */ |
| 602 | export const suspend = <OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>( |
| 603 | evaluate: LazyArg<Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env>> |
| 604 | ): Channel<OutElem, OutErr, OutDone, InElem, InErr, InDone, Env> => |
| 605 | fromTransform((upstream, scope) => Effect.suspend(() => toTransform(evaluate())(upstream, scope))) |
| 606 | |
| 607 | /** |
| 608 | * Acquires a resource, uses it to build a `Channel`, and guarantees that |
no test coverage detected