Handling Multiple Instances of the Same Dependency in Effect

how can I have one Effect take in two different instances of the same dependency? My scenario is that I have two Streams that both read from redis, and I merge them with haltingBehavior either so that as soon as one client emits, both streams stop. They need to use different Redis clients though. How do people typically achieve that? Should I pass them in as function arguments instead of using yield* to get a reference?
Was this page helpful?