Following from issue #335 , I created multiple runtimes encapsulated in a singleton struct, so I can spawn the right functions on the right runtime. However, I quickly encountered that these functions weren't getting executed, because the runtime is scheduling on the main thread as well, which isn't available. The fix was to skip the main thread. See this commit in my fork of zio:
manishrjain@2c945ad
Following from issue #335 , I created multiple runtimes encapsulated in a singleton struct, so I can spawn the right functions on the right runtime. However, I quickly encountered that these functions weren't getting executed, because the runtime is scheduling on the main thread as well, which isn't available. The fix was to skip the main thread. See this commit in my fork of zio:
manishrjain@2c945ad