32 Star 225 Fork 40

GVPI++俱乐部/Dora-SSR

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
loop.mdx 587 Bytes
一键复制 编辑 原始数据 按行查看 历史
Li Jin 提交于 2025-01-06 16:24 +08:00 . Fixed doc site prismjs language adding. [skip CI]
# loop
**Description:**
  Create a coroutine job that runs repeatedly until a condition is met.
**Signature:**
```tl
loop: function(routine: function(): boolean): Routine.Job
```
**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| routine | function | A routine function to execute repeatedly until it returns non-nil or non-false.<br/>Yield or return true inside the routine function to stop the job execution. |
**Returns:**
| Return Type | Description |
| --- | --- |
| Routine.Job | A coroutine that runs the given routine function repeatedly. |
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/ippclub/Dora-SSR.git
git@gitee.com:ippclub/Dora-SSR.git
ippclub
Dora-SSR
Dora-SSR
main

搜索帮助