coroutine.wrap()

coroutine.wrap (f)

Creates a new coroutine, with body f. f must be a function. Returns a function that resumes the coroutine each time it is called. Any arguments passed to the function behave as the extra arguments to resume. Returns the same values returned by resume, except the first boolean. In case of error, propagates the error.

doc_lua
2017-02-21 04:10:35
Comments
Leave a Comment

Please login to continue.