framework icon indicating copy to clipboard operation
framework copied to clipboard

Handled Concurrency run() fails when passing an array instead of a cl…

Open shaikhanaas9820 opened this issue 9 months ago • 1 comments

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.

shaikhanaas9820 avatar Mar 08 '25 23:03 shaikhanaas9820

Mark as draft as test are failing

crynobone avatar Mar 10 '25 03:03 crynobone