0
7
Login
Code
Issues
Pull requests
Events
Packages
b6b0b6857463e3ea53f4ea5593c1ff81d9021414
b6b0b6857463e3ea53f4ea5593c1ff81d9021414

Async Task

Latest Stable Version Total Downloads License

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));

Donate

If you like them, Buy me a cup of coffee. Alipay | WeChat

Contact

License

MIT