0
7
Login
Code
Issues
Pull requests
Events
Packages
59b7c57abe1b904c61b7ea92e10550cb9074d1b0
59b7c57abe1b904c61b7ea92e10550cb9074d1b0

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