1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 17:09:40 +01:00
Commit Graph

1573 Commits

Author SHA1 Message Date
Aaron Piotrowski
e629cc81e7
Add optional args to async (#379) 2021-12-04 10:01:56 -06:00
Niklas Keller
b8764391dd Use revolt/event-loop ^0.1 2021-12-03 21:55:11 +01:00
Niklas Keller
521624b9f7 Fix rename leftovers 2021-12-03 01:02:05 +01:00
Niklas Keller
d94a1a54aa Fix psalm config 2021-12-03 00:58:44 +01:00
Niklas Keller
ca77e6bbc0 Update future docs 2021-12-03 00:50:57 +01:00
Aaron Piotrowski
aa8b23c039
Update a few remaining callable refs to Closure 2021-12-02 17:49:48 -06:00
Aaron Piotrowski
18b0348ddc
Limit Future::map(), catch(), and finally() to Closure 2021-12-02 17:49:21 -06:00
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