The problem is that when I start it up, after the last Effect (
consumer.run
consumer.run
) yields, the program exits cleanly. I want to keep it running. However, if I simply add the following after:
yield* Effect.forever(Effect.void);
yield* Effect.forever(Effect.void);
It has a rather large CPU usage as a consequence. What are more CPU-sparing ways of keeping the program running indefinitely with Effect? FYI: I run the program with