Commit Graph

36 Commits

Author SHA1 Message Date
Aaron Piotrowski
f91c44b6f0 Allow calling Context::join() immediately 2023-03-26 12:03:33 -05:00
Niklas Keller
a072e63c3f Fix and re-enable windows CI 2023-03-02 15:59:10 -06:00
Aaron Piotrowski
815c2500bc Only throw ContextException from receive, send, and join (#166) 2023-03-01 23:40:36 -06:00
Aaron Piotrowski
efcdd38ecb Refactor ParallelHub 2023-02-16 22:52:33 -06:00
Aaron Piotrowski
9e5eec211a Declare strict types 2022-12-17 15:49:26 -06:00
Niklas Keller
374c590ea0 Increase delay also for testThrowingProcessOnSend 2022-10-03 18:51:17 +02:00
Niklas Keller
83e9feab8f Increase delay to fix slow test execution on GitHub actions on Windows 2022-10-03 18:44:05 +02:00
Aaron Piotrowski
c3bb2452c2 Add a couple tests 2022-08-07 12:01:21 -05:00
Niklas Keller
5348d43129 Rename Job → Execution, enqueue → submit 2022-02-06 22:31:15 +01:00
Aaron Piotrowski
cce2c2a345 Remove isRunning and kill from Context
Replaced by Channel::close and isClosed.
2022-02-06 10:06:03 -06:00
Aaron Piotrowski
3908cbcdc2 Make things work 2022-02-06 09:54:03 -06:00
Aaron Piotrowski
b318b3eb82 Move ExitResult classes into inter 2021-12-22 16:59:30 -06:00
Aaron Piotrowski
1e881bf01f Update for amphp/process beta 2 2021-12-17 17:31:05 -06:00
Aaron Piotrowski
becad2ca48 Update for amphp/process beta 2021-12-16 23:21:25 -06:00
Aaron Piotrowski
758eaa45c2 Add LocalChannel and refactor Channel
Channels can now call receive multiple times, but they cannot send null, as this is now used to indicate the channel has closed, similar to pipelines and streams.
2021-12-12 10:30:42 -06:00
Aaron Piotrowski
350c769ab0 Update for recent dependency changes 2021-12-11 09:59:42 -06:00
Bob Weinand
b7b70d205a Update for recent renames 2021-12-04 16:36:25 +01:00
Aaron Piotrowski
8b048caa71 Return a Future from Channel::send() 2021-11-21 12:27:07 -06: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
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
d378e7bf78 Update expected exception messages 2020-03-06 09:44:37 -06:00
Aaron Piotrowski
53a97cbd92 Expand context & task exceptions 2020-02-14 12:55:38 -06:00
Aaron Piotrowski
dfb7b0149b Add test delay to allow process to crash
Sending to fast can succeed before process crashes.
2020-02-10 17:40:34 -06:00
Aaron Piotrowski
4ed05f6aac Improve error handling when sending and receiving 2020-02-10 12:29:27 -06:00
Aaron Piotrowski
24213ee911 Upgrade to PHPUnit 7 or 8 2019-08-27 12:17:41 -05:00
Aaron Piotrowski
7303b8dcf3 Fix exiting parallel context 2019-04-30 14:47:37 -05:00
Aaron Piotrowski
f2e5224856 Unite Process and Parallel context interfaces
Allows scripts to be written for either context.
2019-02-17 23:50:41 -06:00
Aaron Piotrowski
a5c08a2041 Pause before exiting thread in test
Not sure why exiting immediately allows the write to succeed.
2018-10-24 11:13:42 -05:00
Aaron Piotrowski
b562925e6d Do not yield context start 2018-10-22 14:46:47 -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
cdf84999aa Update context test 2017-12-26 23:16:30 -06:00
Aaron Piotrowski
4426686e54 Reorganize 2017-12-07 21:26:55 -06:00