Commit Graph

84 Commits

Author SHA1 Message Date
Aaron Piotrowski
a00eb2d014 Update example styles 2024-01-28 12:39:24 -06:00
thgs
024369c526 Small improvements on examples (#194) 2024-01-07 12:50:32 -06:00
Aaron Piotrowski
2b717ecdfa Update examples 2023-02-17 12:18:02 -06:00
Aaron Piotrowski
a4edad0d08 Add await() shortcut to Execution
Renamed getResult() to getFuture()
2023-02-14 21:30:55 -06:00
Niklas Keller
c08f6021f6 Fix code style 2023-02-14 22:30:44 +01:00
Niklas Keller
842c65f753 Fix psalm issues 2023-02-14 22:28:59 +01:00
Niklas Keller
60f2c1c976 Add example for worker 2023-02-14 22:21:42 +01:00
Niklas Keller
d5d7dc517c Remove template types from ContextFactory::start
They can't be inferred, so they're pretty useless here.
2023-02-14 21:50:45 +01:00
Niklas Keller
421e44b6d3 Fix psalm issues 2023-02-14 21:47:27 +01:00
Niklas Keller
abf5fe195b Rename DefaultWorker* to ContextWorker* 2023-02-14 21:31:30 +01:00
Niklas Keller
a4b23892a1 Remove ipcHub()
Users should use the factories instead.

Closes #163.
2023-02-14 21:19:44 +01:00
Aaron Piotrowski
9e5eec211a Declare strict types 2022-12-17 15:49:26 -06:00
Aaron Piotrowski
7cf3733a02 Update CS fixer version and apply new rules 2022-03-28 17:18:28 -05:00
Niklas Keller
ae5ae5174a Add psalm to CI 2022-02-07 00:20:05 +01:00
Aaron Piotrowski
7164bce81e Move example contexts into subdirectory 2022-02-06 11:23:21 -06:00
Aaron Piotrowski
446e9a7313 Move ext-parallel classes to internal namespace for now 2022-02-06 11:22:33 -06:00
Aaron Piotrowski
0c9fdff967 Initial WIP 2022-02-06 00:30:41 -06:00
Aaron Piotrowski
66415c5599 Update Parcel interface, add LocalParcel
Changed Parcel to require a Closure to match our other APIs.
2021-12-24 11:49:23 -06:00
Aaron Piotrowski
d9c38a8b64 Add Psalm and fix fix some issues 2021-12-20 23:30:35 -06:00
Aaron Piotrowski
7bc74d24f5 Add Context suffix to Context classes 2021-12-18 09:45:08 -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
Aaron Piotrowski
2466d78fd6 Update for rename of coroutine to launch 2021-11-20 15:07:13 -06:00
Aaron Piotrowski
3602a615ce Update for Amp and Revolt changes 2021-10-15 16:49:03 -05:00
Aaron Piotrowski
e47e788e17 Update for Revolt changes and Futures 2021-09-17 14:50:57 -05:00
Aaron Piotrowski
c79efa6249 Fix compatibility with ext-parallel 2020-12-02 13:30:58 -06:00
Aaron Piotrowski
59a8822403 Refactor for Amp v3 2020-10-07 23:04:29 -05:00
Aaron Piotrowski
ecaf0a854b Add support for krakjoe/parallel 2019-02-14 00:34:45 -06:00
Pieter Hordijk
b9d6720c83 Fixed examples (#61)
* Fixed examples

CallableTask expects the parameters to be passed in as array

* Fixed worker-pool example

The task does not make available the arguments (anymore)
2018-11-08 14:29:07 -06:00
Niklas Keller
912047f2ec Add CallableTask and enqueueCallable 2018-11-04 10:17:19 -06:00
Aaron Piotrowski
31cbd9f197 Update examples 2018-10-24 22:31:47 -05:00
Aaron Piotrowski
79a4f979f4 Update examples 2018-10-21 10:34:08 -05:00
Aaron Piotrowski
b654463339 Fix code style 2018-10-07 09:50:45 -05:00
Aaron Piotrowski
cb5ea736d4 Improve process IPC
Processes now use a shared server socket instead of stdin and stdout for IPC.
2018-10-07 09:31:35 -05:00
Aaron Piotrowski
312aecf1ff Remove Worker::start()
The context can automatically be started when a job is enqueued.
2017-12-13 14:14:31 -06:00
Aaron Piotrowski
ff35e2fd8d Add SharedMemoryParcel example 2017-12-12 23:38:23 -06:00
Aaron Piotrowski
4d99a9d968 spawn → run 2017-12-10 17:01:10 -06:00
Aaron Piotrowski
852f580915 Remove $this magic from Thread callback
Channel is now passed as the first argument.
2017-12-10 16:53:51 -06:00
Aaron Piotrowski
4d4841f449 Refactor Process to make writing child processes simple 2017-12-10 16:39:49 -06:00
Aaron Piotrowski
130732d4b5 Update examples 2017-11-29 20:17:49 -06:00
Cyril Panshine
bcfb30fa35 Improve worker-pool example (#30) 2017-11-20 19:21:53 +01:00
Aaron Piotrowski
dbd3403087 Quiet style fixer 2017-11-10 11:35:47 -06:00
Aaron Piotrowski
aaee76e3da Rename Threading namespace to Thread 2017-11-10 10:00:04 -06:00
Niklas Keller
a6bca0f085 Fix code style 2017-06-17 18:31:35 +02:00
Aaron Piotrowski
be0d786e14 example → examples 2017-06-16 00:04:10 -05:00
Aaron Piotrowski
c38b921029 examples -> example 2016-08-26 09:53:18 -05:00
Aaron Piotrowski
ce25a0179d Rename to Parallel 2016-08-23 16:47:40 -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
464a5ef87e Allow run() to return anything 2016-01-24 23:04:29 -06:00