Commit Graph

34 Commits

Author SHA1 Message Date
Aaron Piotrowski
a4edad0d08 Add await() shortcut to Execution
Renamed getResult() to getFuture()
2023-02-14 21:30:55 -06:00
Aaron Piotrowski
b19d87fc50 Remove cache from Task::run() 2023-02-06 17:41:20 -06:00
Aaron Piotrowski
bedca5d7af Switch Cache to AtomicCache in Task::run() 2023-02-04 10:07:27 -06:00
Aaron Piotrowski
9e5eec211a Declare strict types 2022-12-17 15:49:26 -06:00
Niklas Keller
3e0f355a45 Rename pooledWorker → getWorker 2022-02-06 22:39:56 +01:00
Niklas Keller
5348d43129 Rename Job → Execution, enqueue → submit 2022-02-06 22:31:15 +01:00
Aaron Piotrowski
5d8a9deeca Low-hanging fruit 2022-02-06 11:06:00 -06:00
Aaron Piotrowski
3908cbcdc2 Make things work 2022-02-06 09:54:03 -06:00
Aaron Piotrowski
a45aa6370d Refactor worker tasks to have a communication channel 2021-12-20 17:24:13 -06:00
Aaron Piotrowski
2a9b8e7122 Better names for context and worker functions 2021-12-18 21:21:26 -06:00
Aaron Piotrowski
13c85413fe Remove Environment
Cache can do the same job now.
2021-12-18 00:27:37 -06:00
Aaron Piotrowski
e2b444a004 Rename enqueue to execute and remove enqueueCallable 2021-12-17 23:55:25 -06:00
Bob Weinand
b7b70d205a Update for recent renames 2021-12-04 16:36:25 +01:00
Niklas Keller
477025c44d Use revolt 2021-03-27 08:05:02 +01:00
Aaron Piotrowski
59a8822403 Refactor for Amp v3 2020-10-07 23:04:29 -05:00
Aaron Piotrowski
131c11e173 Add support for cancelling tasks 2020-10-07 12:11:25 -05:00
Aaron Piotrowski
839e30cf0a Refactor pool queue
Improved enqueue tasks to a busy pool. `Pool::getWorker()` now returns `Promise<Worker>` instead of `Worker`.
2020-10-07 12:11:24 -05:00
Aaron Piotrowski
2b418eb71d Improve error message for non-autoloadable callables
Fixes #83.
2019-08-27 18:28:31 -05:00
Aaron Piotrowski
24213ee911 Upgrade to PHPUnit 7 or 8 2019-08-27 12:17:41 -05:00
Aaron Piotrowski
9236ade19f Capture previous exceptions of exceptions thrown from Task::run() 2019-01-25 14:29:32 -06:00
Niklas Keller
912047f2ec Add CallableTask and enqueueCallable 2018-11-04 10:17:19 -06:00
Aaron Piotrowski
60e0213904 Update functions test for rename 2018-10-27 09:56:09 -05:00
Aaron Piotrowski
b654463339 Fix code style 2018-10-07 09:50:45 -05:00
Gabriel Caruso
02a3b84f8f Use dedicated PHPUnit assertions 2018-03-21 21:54:05 +01:00
Niklas Keller
2e9a29ae1c Apply Amp's code style 2017-05-18 09:51:31 +02:00
Aaron Piotrowski
6c0078b915 Update to PHPUnit 6 and use helper package 2017-03-21 23:19:15 -05:00
Aaron Piotrowski
6a8eb2130e Update for async-interop merge and other Amp changes 2017-03-16 17:03:59 -05: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
ce25a0179d Rename to Parallel 2016-08-23 16:47:40 -05:00
Aaron Piotrowski
c068a5ae38 Use strict types; fix tests 2016-08-21 23:40:48 -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