0
7
Login
Code
Issues
Pull requests
Events
Packages
6519b2940c0b758cf9a85fe66a0409f7ea266695
6519b2940c0b758cf9a85fe66a0409f7ea266695

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.

AlipayWeChat

Contact

License

MIT