Closed Divertisment closed 1 year ago
Hi! I'm not sure what you mean by "clearing the queue", but you can cancel a Coroutine using the Cancel
method. I hope that answers your question!
And the second question. Priority doesn't work for me. If I press 1 2 3 4 the tasks will be executed exactly in that order. But since I set 4 as the maximum priority the queue should be executed 1423 - it would be logical.
"clearing the queue"
Pls just run my example and pres 1 2 3 4 and see what happens. We will get a queue of tasks 1 2 34
Priority is about the order that coroutine steps will be executed when they're invoked in the same Tick
or RaiseEvent
call.
To make an example, if you were to raise an event that four different coroutines are waiting on, priority dictates what order their actions are invoked in. If you raise four different events "at the same time" (which is really just four different events raised in order), and four coroutines are waiting for one of those events each, priority has no effect.
For more insight into how various parts of the library are meant to work in greater detail, I recommend checking out the tests :)
Priority is about the order that coroutine steps will be executed when they're invoked in the same
Tick
orRaiseEvent
call.
ah ok, i see. thanks
For more insight into how various parts of the library are meant to work in greater detail, I recommend checking out the tests :)
I'll close it as soon as I figure it out if you don't mind. Thanks
hi, I like your library very much. I sketched an example. Is it possible to somehow interrupt the execution of the current coroutine and proceed to the execution of the next one. Or interrupt the current one and delete the entire queue. The essence of the issue is stated in the code - if we press Backspace and Del