coroutine.wrap

From GMod Wiki

Revision as of 06:37, 2 February 2011 by Donkie (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Kdict.pngThis page needs reviewing. An expert needs to verify that all of the information in this page is correct.
See more articles for review here.


Function
Syntax coroutine.wrap( function func )
Where is this used?
Description:
Creates a new coroutine that runs the passed function. Calling the returned function will resume the coroutine.
Returns: function
Part of Library: Corout
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Coroutine.wrap]Coroutine.wrap [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionN/A
Used onNewerMissing.png
Code
LuaIco3.pngThis page needs an example to demonstrate the item detailed on this page. See how to make one here.
See more articles that need examples here.
OutputN/A


See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox