1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 09:37:57 +01:00
Commit Graph

44 Commits

Author SHA1 Message Date
Aaron Piotrowski
7bb49256be
Fix missed use statement 2017-11-29 17:58:00 -06:00
Aaron Piotrowski
3aff92fec4
Consolodate process and thread contexts into Context namespace 2017-11-29 15:01:32 -06:00
Aaron Piotrowski
33a5b89ff7
Refactor Parcels 2017-11-29 14:40:07 -06:00
Aaron Piotrowski
e700395ac5 Better fix for #27
Assertions would crash the worker, this will return as a failed task.
2017-11-22 21:38:11 -06:00
Aaron Piotrowski
689de9a28b
Assert autoload of Task class did not fail
Fixes #27.
2017-11-22 20:42:56 -06:00
Aaron Piotrowski
26e826a05f
Add code to exception message, addresses #21
Code is no longer passed to exception constructor in parent context.
2017-11-10 11:32:15 -06:00
Aaron Piotrowski
0e71b18197
Faster freeing of task memory 2017-11-10 10:32:01 -06:00
Aaron Piotrowski
aaee76e3da
Rename Threading namespace to Thread 2017-11-10 10:00:04 -06:00
Aaron Piotrowski
f48066eb1b
Drop Fork along with Process and Strand interfaces
Forking is just too dangerous for virtually no gain over Process. Context now extends Sync\Channel.
2017-11-10 09:59:23 -06:00
Aaron Piotrowski
0ef74413af
Fix updating TTL; add more environment tests 2017-07-29 10:29:16 -05:00
Aaron Piotrowski
84b611e780
Move ExitResult classes out of Internal namespace 2017-07-28 17:34:24 -05:00
Aaron Piotrowski
0df4fa9cce
Add internal annotations 2017-07-27 23:49:20 -05:00
Aaron Piotrowski
3d5e1c6e6f
Refactor BasicEnvironment
Remove \Countable, add tests.
2017-07-27 23:47:36 -05:00
Aaron Piotrowski
cab8bbe8f6
Add ability to set Environment class name 2017-07-27 23:31:43 -05:00
Aaron Piotrowski
faf1555b9c
Move TaskRunner out of Internal namespace 2017-07-26 23:32:19 -05:00
Aaron Piotrowski
d4a2c311ca
Do not start global pool until used 2017-07-17 22:54:14 -05:00
Aaron Piotrowski
ff146bc8ba
Reduce default pool size 2017-07-17 22:53:19 -05:00
Niklas Keller
77de09894f Allow mixed for exception codes, because PDO 2017-06-28 12:41:59 +02:00
Aaron Piotrowski
29a1d1bb8c
Maintain task order for fast-finishing/blocking tasks 2017-06-19 22:14:19 -05:00
Aaron Piotrowski
20bb51e926 Improve worker error reporting 2017-06-17 23:57:12 -05:00
Aaron Piotrowski
149dbe4ba3 Use Amp\call to run tasks
Handles generator to coroutine convertion and React promises automatically.
2017-05-19 17:13:42 -05:00
Niklas Keller
2e9a29ae1c Apply Amp's code style 2017-05-18 09:51:31 +02:00
Aaron Piotrowski
1f637cfc6f Map deferreds to promises 2017-05-17 23:28:18 -05:00
Aaron Piotrowski
c7294da60d Reorganize exception classes and add TaskError
TaskError is thrown if the exception thrown in the worker was an instance of Error.
2017-05-17 23:13:29 -05:00
Aaron Piotrowski
9bf978ad01 when() → onResolve() 2017-03-21 18:45:23 -05:00
Aaron Piotrowski
0236fc5336 Kill worker forks
Forking for workers is just not a good idea… it's too likely to be used irresponsibly.
2017-03-16 17:33:30 -05:00
Aaron Piotrowski
6a8eb2130e Update for async-interop merge and other Amp changes 2017-03-16 17:03:59 -05:00
Aaron Piotrowski
0912d39004 Remove WorkerFork from DefaultWorkerFactory 2017-02-17 17:00:24 -06:00
Aaron Piotrowski
08f6eb1958 Store pool and factory as loop states 2017-01-11 11:52:12 -06:00
Aaron Piotrowski
f5ebd6b435 Update for async-interop namespace change 2017-01-09 11:11:25 -06:00
Aaron Piotrowski
71f8d2016d Drop strict types 2016-12-29 19:16:04 -06:00
Aaron Piotrowski
6d88d87fe0 Awaitable → Promise 2016-11-14 17:43:44 -06:00
Aaron Piotrowski
c4a5082d90 Minor cleanup/refactoring 2016-09-07 11:38:46 -05:00
Aaron Piotrowski
67c82f0f2f Minor cleanup and bugfixes 2016-09-01 18:10:52 -05:00
Aaron Piotrowski
046f7defb8 Refactor DefaultPool 2016-08-30 17:36:21 -05:00
Aaron Piotrowski
3d2964ff10 Add method to retreive class name thrown from tasks 2016-08-30 13:40:46 -05:00
Aaron Piotrowski
8126b8e3f2 Property docblock cleanup 2016-08-26 10:10:03 -05:00
Aaron Piotrowski
ce25a0179d Rename to Parallel 2016-08-23 16:47:40 -05:00
Aaron Piotrowski
b924fc2b6e Code cleanup 2016-08-22 18:25:19 -05:00
Aaron Piotrowski
c068a5ae38 Use strict types; fix tests 2016-08-21 23:40:48 -05:00
Aaron Piotrowski
193581d6c9 Run multiple tasks simultaneously on workers 2016-08-21 10:33:39 -05:00
Aaron Piotrowski
70097cb225 Update tests; code cleanup 2016-08-18 17:36:58 -05:00
Aaron Piotrowski
da84a772cf Port to Amp 2016-08-18 11:04:48 -05:00
Aaron Piotrowski
54810f1d67 Update composer and dir name for Amp 2016-07-20 09:23:50 -05:00