Although they behave the same, what is the recommended function to use? They said you can call coroutine whenever you want but spawn(function() already executes. I soon replaced some of my codes that have spawn(function() with coroutine.wrap(function() since I am now familiar with it. But still, I am asking if which one of those two is recommended.
✓ ANSWER ACCEPTED
[SOLVED] I use spawn(function() always, but what is better? coroutine.wrap(f) or spawn(function()?
1 answer
✓ Accepted answer
#Coroutines
Coroutines are better to use in several ways
They're more reliable than spawns since they have no delays
They work 99.9% of the time properly
More efficient, easier to use etc
You can also check a documentation on corountines here
They're many more reasons!
This discussion is preserved as it was. New answers, comments, and votes are closed.

3 comments
coroutines are recommended to use instead of spawn
Spawns are known to have a built- in delay, whilst corountines are recommended to use!
Thanks, I know what to use now!