Merge pull request #303 from NiZerin/patch-1

Update task.md
This commit is contained in:
李铭昕 2019-07-31 16:33:33 +08:00 committed by GitHub
commit c07e7b6cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,7 +64,7 @@ class MethodTask
$container = ApplicationContext::getContainer();
$exec = $container->get(TaskExecutor::class);
$result = $exec->execute(new Task([MethodTask::class, 'handle'], Coroutine::id()));
$result = $exec->execute(new Task([MethodTask::class, 'handle'], [Coroutine::id()]));
```