#Is there a way to await timer ends?

5 messages · Page 1 of 1 (latest)

queen turret
#

I haven't use Bevy yet but just asking if this exists.
I want to have a system where one thread is pause until a timer ends then continue. While that system is paused other system will continue. I believe that would call non blocking?. Is this exists? It Godot it would be like await in 4.0 and yield in 3.0.

#

After sometimes researching, there's extension called pecs.

ionic kayak
#

You could store a Timer in a resource and use that to dictate which systems run when

queen turret
#

That could work but it would surely make the code much harder to write and unreadable when I need to wait a lot of timer. (already a lot of thread::sleep in my previous code)

hexed bluff