Skip to content
Permalink
Browse files

Add more specific types to closures

  • Loading branch information...
muglug committed Jun 15, 2019
1 parent 9c03dfa commit 55aa1f78cb5f3e16f9eaa4fae5f3a417d174eefc
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/Psalm/Internal/Fork/Pool.php
@@ -28,17 +28,17 @@ class Pool
private $task_done_closure;
/**
* @param array[] $process_task_data_iterator
* @param array<int, array<int, mixed>> $process_task_data_iterator
* An array of task data items to be divided up among the
* workers. The size of this is the number of forked processes.
* @param \Closure $startup_closure
* A closure to execute upon starting a child
* @param \Closure $task_closure
* @param \Closure(int, mixed):mixed $task_closure
* A method to execute on each task data.
* This closure must return an array (to be gathered).
* @param \Closure $shutdown_closure
* @param \Closure():mixed $shutdown_closure
* A closure to execute upon shutting down a child
* @param ?\Closure(mixed $data): void $task_done_closure
* @param ?\Closure(mixed $data):void $task_done_closure
* A closure to execute when a task is done
*
* @psalm-suppress MixedAssignment

0 comments on commit 55aa1f7

Please sign in to comment.
You can’t perform that action at this time.