framework
framework copied to clipboard
Handled Concurrency run() fails when passing an array instead of a cl…
The original run method only works for closures because it uses SerializableClosure.
To handle both closures and arrays, you need to:
Check the type of each task.
Serialize closures using SerializableClosure.
Serialize arrays or other data using json_encode.
Update the subprocess command to handle both serialized closures and JSON-encoded data.
Mark as draft as test are failing