I've been hearing explanations on the spawn function being something like: "It runs it's function argument when the thread next yields"
Does this mean that the spawn function would pretty much just look like this?
function spawn(f)
coroutine.yield()
coroutine.resume(coroutine.create(f))
end
Or am I missing something? If someone could clear up, or give an example of what they mean by "when the thread next yields", I'd really appreciate it. Thanks!
