Creating a Reloadable Service with Daemon Processes in Effect Typescript
Quick question about daemon processes and Reloadable. I'm looking to create a Reloadable service, which exposes an API to kick off a daemon process (sort of worker process, communicating with the rest of the app via queue). Something along the lines of:
const queue = yield* MyService.worker() // worker will forkDaemon while(true) {} loop with yield* Queue.takeUpTo inside
const queue = yield* MyService.worker() // worker will forkDaemon while(true) {} loop with yield* Queue.takeUpTo inside
I'd obviously want all those daemon processes to die upon service reload. I'm not any good at scopes