Task.php 349 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. namespace Swoole\Server;
  3. class Task
  4. {
  5. public $data;
  6. public $dispatch_time = 0;
  7. public $id = -1;
  8. public $worker_id = -1;
  9. public $flags = 0;
  10. /**
  11. * @return mixed
  12. */
  13. public function finish($data)
  14. {
  15. }
  16. /**
  17. * @return mixed
  18. */
  19. public static function pack($data)
  20. {
  21. }
  22. }