For Agents | Documentation index: https://create.roblox.com/docs/llms.txt | Engine API index: https://create.roblox.com/docs/reference/engine/llms.txt
学习
库
/
task
中文(简体)
反馈
引擎库
task
*
此内容使用人工智能(Beta)翻译,可能包含错误。若要查看英文页面,请点按
此处
。
摘要
职能
spawn
(
functionOrThread:
function
|
coroutine
,
...:
Variant
)
:
coroutine
defer
(
functionOrThread:
function
|
coroutine
,
...:
Variant
)
:
coroutine
delay
(
duration:
number
,
functionOrThread:
function
|
coroutine
,
...:
Variant
)
:
coroutine
desynchronize
()
:
()
synchronize
()
:
()
wait
(
duration:
number
)
:
number
cancel
(
thread:
coroutine
)
:
()
API 参考
职能
spawn
task.spawn
(
functionOrThread
:
function
|
coroutine
,
...
:
Variant
)
:
coroutine
参数
functionOrThread
:
function
|
coroutine
...
:
Variant
返回
coroutine
提供反馈
defer
task.defer
(
functionOrThread
:
function
|
coroutine
,
...
:
Variant
)
:
coroutine
参数
functionOrThread
:
function
|
coroutine
...
:
Variant
返回
coroutine
提供反馈
delay
task.delay
(
duration
:
number
,
functionOrThread
:
function
|
coroutine
,
...
:
Variant
)
:
coroutine
参数
duration
:
number
functionOrThread
:
function
|
coroutine
...
:
Variant
返回
coroutine
提供反馈
desynchronize
task.desynchronize
(
)
:
()
返回
()
提供反馈
synchronize
task.synchronize
(
)
:
()
返回
()
提供反馈
wait
task.wait
(
duration
:
number
)
:
number
参数
duration
:
number
默认值:0
返回
number
提供反馈
cancel
task.cancel
(
thread
:
coroutine
)
:
()
参数
thread
:
coroutine
返回
()
提供反馈
跳转到
▼
task
摘要
职能
职能
spawn()
defer()
delay()
desynchronize()
synchronize()
wait()
cancel()
中文(简体)
反馈
©2026 Roblox Corporation、Roblox、Roblox 标志及 Powering Imagination 是我们在美国及其他国家或地区的注册与未注册商标。
条款
·
隐私政策
·
辅助功能
·
支持
中文(简体)