学ぶ
エンジンライブラリ
coroutine

*このコンテンツは、ベータ版のAI(人工知能)を使用して翻訳されており、エラーが含まれている可能性があります。このページを英語で表示するには、 こちら をクリックしてください。



APIリファレンス
関数
close
coroutine.close(co:coroutine):boolean,Variant<string, ()>
パラメータ
戻り値
boolean, Variant<string, ()>

create
coroutine.create(f:function):coroutine
パラメータ
戻り値

isyieldable
coroutine.isyieldable():boolean
戻り値

resume
coroutine.resume(
co:coroutine, ...:Variant
):boolean,Variant<Tuple, string>
パラメータ
...:Variant
戻り値
boolean, Variant<Tuple, string>

running
coroutine.running():coroutine
戻り値

status
coroutine.status(co:coroutine):string
パラメータ
戻り値

wrap
coroutine.wrap(f:function):function
パラメータ
戻り値

yield
coroutine.yield(...:Tuple):Tuple<Variant>
パラメータ
...:Tuple
戻り値
Tuple<Variant>

©2026 Roblox Corporation。Roblox(ロブロックス)、RobloxロゴおよびPowering Imaginationは、米国並びにその他の国における登録商標および非登録商標です。