Revision Difference
coroutine.wrap#527375
<function name="wrap" parent="coroutine" type="libraryfunc">
<description>Returns a function which calling is equivalent with calling <page>coroutine.resume</page> with the coroutine and all extra parameters.</description>⤶
<description>Returns a function which calling is equivalent with calling <page>coroutine.resume</page> with the coroutine and all extra parameters.⤶
⤶
The values returned by the returned function only contain the values passed to the inner <page>coroutine.yield</page> call and do not include the *no error* status that <page>coroutine.resume</page> provides. In case of failure, an error is thrown instead.⤶
</description>⤶
<realm>Shared and Menu</realm>
<args>
<arg name="coroutine" type="function">Coroutine to resume.</arg>
</args>
<rets>
<ret name="" type="function">func</ret>
</rets>
</function>