coroutineライブラリ
ライブラリ日本語解説は準備中
ひとことで言うと
coroutineは、ロブロックス(Roblox)のライブラリです。くわしい日本語解説は準備中のため、下に公式の説明(英語)を載せています。
公式の説明(英語):A function that executes alongside the main thread.
関数(9)
| 名前と書き方 | 説明 |
|---|---|
closecoroutine.close(co: thread): bool, Variant<string, void> | Closes and puts the provided coroutine in a dead state. |
createcoroutine.create(f: function): thread | Creates a new coroutine, with body f. f must be a Luau function. |
finallycoroutine.finally(co: thread, callback: Variant) | Registers a callback to invoke when a coroutine finishes, errors, or is closed. |
isyieldablecoroutine.isyieldable(): bool | Returns true if the coroutine this function is called within can safely yield. |
resumecoroutine.resume(co: thread, ...: Variant): bool, Variant<Tuple, string> | Starts or continues the execution of coroutine co. |
runningcoroutine.running(): thread | Returns the running coroutine. |
statuscoroutine.status(co: thread): string | Returns the status of coroutine co as a string. |
wrapcoroutine.wrap(f: function): function | Creates a new coroutine and returns a function that, when called, resumes the coroutine. |
yieldcoroutine.yield(...: Tuple): Tuple<Variant> | Suspends execution of the coroutine. |
英語の説明とメンバーの一覧は、Roblox Creator Documentation(coroutine)をもとにしています(CC BY 4.0)。日本語の解説は、このサイトで独自に書いたものです。