1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 17:37:50 +01:00
Commit Graph

1566 Commits

Author SHA1 Message Date
Aaron Piotrowski
cfb527a9fc
Fixed phpunit-util, so Closure::fromCallable() not necessary 2021-12-02 17:47:30 -06:00
Niklas Keller
79c57650ae Update future docs 2021-12-03 00:33:00 +01:00
Aaron Piotrowski
49f5a5951a
Fix some Psalm issues 2021-12-02 17:28:56 -06:00
Niklas Keller
d70896df73 Update documentation 2021-12-03 00:10:04 +01:00
Aaron Piotrowski
1a2be8f2b2
Rename weaken to weakClosure and limit to closures 2021-12-02 17:08:12 -06:00
Niklas Keller
d20f07acee Update cancellation docs 2021-12-02 23:45:45 +01:00
Niklas Keller
19937d75d0 Remove outdated docs 2021-12-02 23:38:17 +01:00
Niklas Keller
6055ace6c9 Update README 2021-12-02 23:35:02 +01:00
Niklas Keller
af964df98b Remove 1.x and 2.x from CHANGELOG 2021-12-02 23:16:14 +01:00
Niklas Keller
f1637616bf Fix directory in psalm config 2021-12-02 23:13:42 +01:00
Niklas Keller
467ab0aa06 Remove fiber stubs 2021-12-02 23:12:56 +01:00
Niklas Keller
9f6b75485f Add tests for iterator cancellation 2021-12-02 23:10:12 +01:00
Niklas Keller
fb7e5b69a9 Fix code style 2021-12-02 23:00:12 +01:00
Niklas Keller
e26a1123e9 Cleanup rename leftovers 2021-12-02 22:40:18 +01:00
Niklas Keller
99a6b487c3 Rename Deferred to DeferredFuture 2021-12-02 22:29:45 +01:00
Niklas Keller
112e813914 Rename CancellationToken to Cancellation 2021-12-02 22:24:56 +01:00
Niklas Keller
5bd21bed06 Fix documentation in CancellationTokenSource 2021-12-02 21:52:45 +01:00
Niklas Keller
2645e0fd84 Fix documentation in CancellationToken 2021-12-02 21:48:13 +01:00
Niklas Keller
e12c20cbda Use cancellation as parameter name for CancellationToken 2021-12-02 21:43:32 +01:00
Aaron Piotrowski
3926b3f978
Rename launch to async
Thus we've come full circle :P
2021-12-02 13:44:10 -06:00
Niklas Keller
31a34bcb18 Make WeakenTest less timing dependent 2021-12-02 19:12:06 +01:00
Niklas Keller
557913da92 Make WeakenTest less timing dependent 2021-12-02 19:01:05 +01:00
Niklas Keller
bdce2f0896 Use \Closure in launch 2021-12-02 18:49:00 +01:00
Niklas Keller
6d3bf39a7e Cache closure in launch() 2021-12-02 18:44:05 +01:00
Niklas Keller
37db787ba6 Use \Closure instead of callable 2021-12-02 18:40:51 +01:00
Niklas Keller
fee62e5b5e Install ext-fiber 2021-12-02 18:29:56 +01:00
Niklas Keller
624486cec0 Update LICENSE 2021-12-02 18:26:20 +01:00
Niklas Keller
fa25c6f7b0 Add GitHub actions 2021-12-02 18:25:26 +01:00
Niklas Keller
ca5736f9e9 Remove obsolete Travis config 2021-12-02 18:22:48 +01:00
Niklas Keller
1bf42c65eb Rename lib → src 2021-12-02 18:20:10 +01:00
Aaron Piotrowski
fbc7d5f0ec
Rename Future::apply() to map() 2021-11-29 18:36:07 -06:00
Aaron Piotrowski
0f0d13ca31
Remove Interval
No longer necessary since loop watchers can suspend.
2021-11-29 16:10:22 -06:00
Aaron Piotrowski
c02e115ba6
Revert to queue instead of defer for cancellation token callbacks
Reverting to queue now that it also supports suspending within the callback.
2021-11-20 10:25:06 -06:00
Aaron Piotrowski
5a92af3a1b
Rename coroutine to launch 2021-11-20 10:23:55 -06:00
Niklas Keller
4f0cfe94c9 Add Amp\now
Based on caa18c9290.
2021-11-14 18:38:10 +01:00
Niklas Keller
f267707c66 Fix code style 2021-11-14 18:35:07 +01:00
Pader
ac89b9e2ee
Add default value of null to complete() (#368)
Co-authored-by: Niklas Keller <me@kelunik.com>
2021-11-07 10:49:33 +01:00
Aaron Piotrowski
d81275f1b7
Add Future::apply(), catch(), and finally() 2021-10-23 11:53:44 -05:00
Aaron Piotrowski
27219ddbc0
Update for removal of Revolt\launch 2021-10-17 13:24:55 -05:00
Aaron Piotrowski
d937f3d7e0
Widen timing on Interval test 2021-10-16 09:34:39 -05:00
Aaron Piotrowski
e455bed8d6
Invoke cancallation callback in defer 2021-10-16 09:30:36 -05:00
Aaron Piotrowski
b911e589fe
Update phpunit-util dependency 2021-10-14 18:10:10 -05:00
Aaron Piotrowski
4f21306115
Update for Revolt changes 2021-10-14 17:50:40 -05:00
Aaron Piotrowski
16a506d359
Handle weaken on a internal callback
Plus fix or suppress a few Psalm issues
2021-10-09 21:06:35 -05:00
Aaron Piotrowski
cd553c6005
Add Interval 2021-09-30 16:03:59 -05:00
Aaron Piotrowski
68470efad8
Add weaken() 2021-09-29 17:58:12 -05:00
Aaron Piotrowski
0d3114924a
Update name
This was suppose to match prior name.
2021-09-21 18:26:11 -05:00
Aaron Piotrowski
fa93213017
Move UnhandledFutureError into Future namespace 2021-09-21 17:44:59 -05:00
Aaron Piotrowski
2a53328982
Fix all() with iterable
Key order is not guaranteed, like the other Future combinators. This does not affect array unpacking.
2021-09-20 22:02:33 -05:00
Aaron Piotrowski
493e59e8ab
Throw unhandled Future failures to the event loop 2021-09-20 18:36:44 -05:00