- 在 simplecall 函数中添加计算总和并打印结果 - 统一函数定义的大括号格式 - 修复 matrix 和 sieve 函数的参数类型声明 - 调整 return 语句的括号格式 - 使用 Swoole\Coroutine\run 函数别名简化调用pull/1/head
parent
7f260f3d52
commit
15f9d35c69
2 changed files with 11 additions and 7 deletions
@ -1,8 +1,9 @@ |
|||||||
<?php |
<?php |
||||||
|
use function Swoole\Coroutine\run; |
||||||
|
|
||||||
function main(): void |
function main(): void |
||||||
{ |
{ |
||||||
Swoole\Coroutine\run(function () { |
run(function () { |
||||||
sleep(1); |
sleep(1); |
||||||
}); |
}); |
||||||
} |
} |
||||||
Loading…
Reference in new issue