Building a Scheduled Event-Emitting Service with Effect Typescript
I want to build a service that, every minute executes some logic, and depending on the result it emits some events. Do I need an stream that runs infinitely and a pub sub? Or just with a
Effect.repeat
Effect.repeat
is enough? How can I subscribe to the events from "non effect" code? if I execute it once usinng runPromise or something, will it keep running in the background? Or I need a top level Effect.runDaemon for something like this to work?