Learn
Engine Library
coroutine


API Reference
Functions
close
coroutine.close(co:coroutine):boolean,Variant<string, ()>
Parameters
Returns
boolean, Variant<string, ()>

create
coroutine.create(f:function):coroutine
Parameters
Returns

isyieldable
coroutine.isyieldable():boolean
Returns

resume
coroutine.resume(
co:coroutine, ...:Variant
):boolean,Variant<Tuple, string>
Parameters
...:Variant
Returns
boolean, Variant<Tuple, string>

running
coroutine.running():coroutine
Returns

status
coroutine.status(co:coroutine):string
Parameters
Returns

wrap
coroutine.wrap(f:function):function
Parameters
Returns

yield
coroutine.yield(...:Tuple):Tuple<Variant>
Parameters
...:Tuple
Returns
Tuple<Variant>

©2026 Roblox Corporation. Roblox, the Roblox logo and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.