coroutine.resume

From Garry's Mod
Jump to: navigation, search
 coroutine.resume( )

Contents

Description

Resumes the given coroutine and passes the given vararg to either the function arguments or the coroutine.yield that is inside that function and returns whatever yield is called with the next time or by the final return in the function.

Arguments

thread coroutine

Coroutine to resume.

Arguments

vararg args

Arguments to be returned by coroutine.yield.

Returns

boolean

If the executed thread code had no errors occur within it.

Returns

vararg

If an error occured, this will be a string containing the error message. Otherwise, this will be arguments that were yielded.
Personal tools
Navigation