rubenvanerk/laravel-parallel-console-tasks
最新稳定版本:0.1.1
Composer 安装命令:
composer require rubenvanerk/laravel-parallel-console-tasks
包简介
Run tasks in parallel in console commands
README 文档
README
A simple trait to run Laravel Zero-like tasks in parallel.
Installation
You can install the package via composer:
composer require rubenvanerk/laravel-parallel-console-tasks
Usage
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use RubenVanErk\LaravelParallelConsoleTasks\RunsParallelTasks; class Tasks extends Command { use RunsParallelTasks; // ... public function handle() { $this->tasks([ 'Task 1' => function () { // Do a thing return true; }, 'Task 2' => function () { // Do another thing in parallel return true; }, ]); } }
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 2
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-10-16