Garry's Mod Wiki

Revision Difference

coroutine.resume#514154

<function name="resume" parent="coroutine" type="libraryfunc">⤶ <description>Resumes the given coroutine and passes the given vararg to either the function arguments or the <page>coroutine.yield</page> that is inside that function and returns whatever yield is called with the next time or by the final return in the function.</description>⤶ <realm>Shared and Menu</realm>⤶ <args>⤶ <arg name="coroutine" type="thread">Coroutine to resume.</arg>⤶ <arg name="args" type="vararg">Arguments to be returned by &lt;page&gt;coroutine.yield&lt;/page&gt;.</arg>⤶ </args>⤶ <rets>⤶ <ret name="" type="boolean">If the executed thread code had no errors occur within it.</ret>⤶ <ret name="" type="vararg">If an error occured, this will be a string containing the error message. Otherwise, this will be arguments that were yielded.</ret>⤶ </rets>⤶ </function>⤶ ⤶