mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Add more specific types to closures
This commit is contained in:
parent
9c03dfa1d3
commit
55aa1f78cb
@ -28,15 +28,15 @@ 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
|
||||
* A closure to execute when a task is done
|
||||
|
Loading…
x
Reference in New Issue
Block a user