From ComputerCraft Wiki
|Creates a new coroutine and wraps it in a function. The coroutine itself is created similarly to coroutine.create, but is not made visible to the caller. Calling the function returned by coroutine.wrap is equivalent to calling coroutine.resume on the underlying coroutine, with any parameters passed to the wrapper function being passed in turn to coroutine.resume. Should coroutine.resume return success (that is, its first return value be |
|Returns||function coroutine wrapper|
Please see Coroutine (API) for a worked example of using all the coroutine functions.