Currently my round system runs in a loop wrapped in a task.spawn() however, I need more control, Eg, being able to cancel a gamemode/ stop the loop. Which library could be better for this? (coroutine vs task)
I think Coroutines would be better because you can (cancel, yield, close, etc…)
Both libraries can cancel threads.
1 Like
Both are ok, i prefer coroutines over task lib when it comes to threads
Both are good picks, I’ve read that typically coroutines run faster (very negligeable).
coroutine.close
task.cancel
Correct me if I’m wrong but coroutines can pause but task cannot?
They’re both the same thing. You can spawn a coroutine with the task library then close it with the coroutine library