friendsofhyperf / async-task
The async task for Hyperf.
Fund package maintenance!
huangdijia
hdj.me/sponsors
Requires
- friendsofhyperf/support: ~3.1.0
- hyperf/context: ~3.1.0
- hyperf/coroutine: ~3.1.0
- hyperf/di: ~3.1.0
- hyperf/event: ~3.1.0
- hyperf/framework: ~3.1.0
- hyperf/logger: ~3.1.0
- hyperf/support: ~3.1.0
- laravel/serializable-closure: ^1.0
- dev-main / 3.1.x-dev
- v3.1.5
- v3.1.1
- v3.1.0
- v3.1.0-rc.4
- v3.1.0-beta.20
- v3.1.0-beta.15
- v3.1.0-beta.9
- v3.1.0-beta.1
- 3.0.x-dev
- v3.0.112
- v3.0.85
- v3.0.80
- v3.0.70
- v3.0.56
- v3.0.55
- v3.0.52
- v3.0.51
- v3.0.46
- v3.0.44
- v3.0.42
- v3.0.35
- v3.0.14
- v3.0.6
- v3.0.2
- v3.0.1
- v3.0.0
- v3.0.0-rc.30
- v3.0.0-rc.29
- v3.0.0-rc.28
- v3.0.0-rc.27
- v3.0.0-rc.26
- v3.0.0-rc.25
- v3.0.0-rc.24
- v3.0.0-rc.23
- v3.0.0-rc.22
This package is auto-updated.
Last update: 2024-11-07 01:33:58 UTC
README
The async task component for Hyperf.
Installation
composer require friendsofhyperf/async-task
Usage
use FriendsOfHyperf\AsyncTask\AbstractTask; use FriendsOfHyperf\AsyncTask\Task; class FooTask extends AbstractTask { public function handle():void { var_dump('foo'); } } Task::deliver(new FooTask()); Task::deliver(fn () => var_dump(111));