Scheduler.php 328 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Swoole\Coroutine;
  3. class Scheduler
  4. {
  5. function add(callable $call,... $args):void
  6. {
  7. }
  8. /*
  9. * ['max_coroutine' => 100]
  10. */
  11. function set(array $options):void
  12. {
  13. }
  14. function parallel(int $n, callable $call, ... $args)
  15. {
  16. }
  17. function start():bool
  18. {
  19. }
  20. }