Garry's Mod Wiki

coroutine.wrap

function coroutine.wrap( function coroutine )

Description

Returns a function which calling is equivalent with calling coroutine.resume with the coroutine and all extra parameters.

The values returned by the returned function only contain the values passed to the inner coroutine.yield call and do not include the no error status that coroutine.resume provides. In case of failure, an error is thrown instead.

Arguments

1 function coroutine
Coroutine to resume.

Returns

1 function
func

Page Links


Special Pages


Wikis

?

Render Time: 69ms

DB GetPage 43
Generate Html 4
SaveChanges (1) 12
Render Body 0
Render Sidebar 7