If sleeping happens on the main thread then no rendering can happen (rendering is done asynchronously but not on a different thread). You can use @async begin around the stuff in the on call and the whole thing will be interleaved with the rendering using coroutines, even if there’s still only one thread.
3 Likes