Creating a Long-Running Process with Effect Typescript

Am I correct in case I wanna make a long-running process, say, daemon, I should simply to Layer.scopedDiscard > Layer.launch > Runtime.runMain and call it a day?
Was this page helpful?