Effect CommunityEC
Effect Community2y ago
1 reply
bowzee

Question about `forkScoped` and `runIntoPubSubScoped`

Does it make any sense to write like this?

Effect.forkScoped(Stream.runIntoPubSubScoped(stream, pubsub));


I mean, isn't it the same as

Effect.forkScoped(Stream.runIntoPubSub(stream, pubsub));


Because
forkScoped
already requires a scope from outside, and interrupts the inner effect once the scope is closed. Just trying to understand
Was this page helpful?