What's the difference between the spawn(fuc) and the coroutine?

I’m wondering about the difference between the spawn(fuc) and the coroutine?
Could you explain?
I use spawn(fuc) usually, if the fuc doesn’t need parameters.
If there are problems on spawn(fuc), i’ll change them to coroutine :slight_smile:

3 Likes

not hard. spawn is a delay (and a pretty long one) and coroutine doesn’t have a delay, you will start noticing delays when you use spawn often

1 Like

By default it’s only a thirtieth of a second, so not really that long of a delay. It’s only the fact that yielding at all can defer the thread that makes it noticeable, as explained by the thread incapaz posted.

2 Likes