Commit Graph

15 Commits

Author SHA1 Message Date
Aaron Piotrowski
6d033dbd67
Serialize callable immediately
This largely reverts d304ce7a54. Too bad, I was hoping to reuse CallableTask.
2019-01-09 16:37:17 -06:00
Aaron Piotrowski
d304ce7a54
Use CallableTask from amphp/parallel v1.1 2019-01-07 18:14:31 -06:00
Aaron Piotrowski
0b63981159
Allow any serializable callable 2018-10-28 10:18:24 -05:00
Niklas Keller
999ba8a00a Fix code style 2017-12-17 19:33:29 +01:00
Niklas Keller
4ede597ee5 Fix minimum requirement for amphp/amp
This ensures that elements are ordered correctly.
2017-12-17 19:31:34 +01:00
Aaron Piotrowski
6ff9ee6c4c
Add Pool parameter to function
Allows specifying a specific worker pool instead of the global pool.
2017-12-16 11:06:37 -06:00
peter279k
d7f396df2b Make use of composer scripts and add a further test 2017-12-16 10:35:40 +01:00
Niklas Keller
f945e64f32 Rewrite on top of opis/closure 2017-12-14 17:33:41 +01:00
Niklas Keller
43c6fc74c9 Rename functions back to parallelMap and parallelFilter 2017-12-14 17:01:25 +01:00
Niklas Keller
96c5ee7bae Fix code style 2017-12-14 08:31:15 +01:00
Aaron Piotrowski
a3d89f6582
Throw when closure is not serializable 2017-12-13 22:49:18 -06:00
Niklas Keller
7422d61949 Rename parallelMap → map, parallelFilter → filter 2017-12-13 23:57:44 +01:00
Niklas Keller
36dc8ed92a Add php-cs-fixer and fix code style 2017-12-13 23:48:03 +01:00
Niklas Keller
2834e2957b Rename to parallel-functions, use built-in default pool 2017-12-13 23:36:35 +01:00
Niklas Keller
c62ff9f26c Initial commit 2017-12-13 22:58:26 +01:00