Aaron Piotrowski
|
92e225300d
|
Declare strict types
|
2022-12-16 16:23:48 -06:00 |
|
Niklas Keller
|
adf5631676
|
Remove circular dependency on phpunit-util (#408)
|
2022-12-16 16:13:58 -06:00 |
|
Aaron Piotrowski
|
98fbd2270e
|
Add test for issue #394
|
2022-07-31 22:55:54 -05:00 |
|
Tobias Bachert
|
d333e86919
|
Allow GC of arguments during async() closure execution (#395)
|
2022-07-31 22:10:10 -05:00 |
|
Niklas Keller
|
1593a08014
|
Fix code style
|
2022-07-12 00:22:11 +02:00 |
|
Aaron Piotrowski
|
9db31ffd39
|
Fix requires annotation
|
2022-06-25 13:18:35 -05:00 |
|
Tobias Bachert
|
9579bc7ab5
|
Fix weakClosure() not preserving original scope (#393)
|
2022-06-25 13:14:14 -05:00 |
|
Aaron Piotrowski
|
b2575fa448
|
Fix CompositeCancellation::isRequested() and throwIfRequested()
|
2022-06-25 13:04:11 -05:00 |
|
Aaron Piotrowski
|
01c289ec8d
|
Add SignalCancellation (#390)
|
2022-06-14 18:21:55 -05:00 |
|
Aaron Piotrowski
|
557f98d602
|
Fix CompositeCancellation when two are cancelled
Also fixed releasing the reference to contained Cancellations as soon as one is cancelled.
|
2022-05-16 14:23:33 -05:00 |
|
Aaron Piotrowski
|
3f679dbbb9
|
Add traits to forbid cloning and serialization (#388)
|
2022-04-09 19:26:22 +02:00 |
|
Aaron Piotrowski
|
604c67b760
|
Update styles using new rules
|
2022-02-24 14:28:52 -06:00 |
|
Aaron Piotrowski
|
f38e756a3d
|
Fixed memory leak in CombinedCancellationToken (#384)
Co-authored-by: Artur Khasanov <ah@self.team>
|
2022-02-20 12:33:37 -06:00 |
|
Niklas Keller
|
d05b7d56e9
|
Upgrade to php-cs-fixer v3
|
2022-02-01 20:30:04 +01:00 |
|
Niklas Keller
|
2a076099dd
|
Rename combinators, introduce CompositeLengthException (#383)
|
2022-01-16 17:39:04 +01:00 |
|
Aaron Piotrowski
|
cadf1c0069
|
Cancel DeferredCancellation when destroyed (#382)
Related to issue #381.
|
2022-01-16 16:21:21 +01:00 |
|
Aaron Piotrowski
|
cb772a5972
|
Update for phpunit-util changes
|
2021-12-05 10:33:49 -06:00 |
|
Niklas Keller
|
521624b9f7
|
Fix rename leftovers
|
2021-12-03 01:02:05 +01:00 |
|
Aaron Piotrowski
|
cfb527a9fc
|
Fixed phpunit-util, so Closure::fromCallable() not necessary
|
2021-12-02 17:47:30 -06:00 |
|
Aaron Piotrowski
|
1a2be8f2b2
|
Rename weaken to weakClosure and limit to closures
|
2021-12-02 17:08:12 -06: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
|
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 |
|
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
|
37db787ba6
|
Use \Closure instead of callable
|
2021-12-02 18:40:51 +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
|
5a92af3a1b
|
Rename coroutine to launch
|
2021-11-20 10:23:55 -06: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
|
4f21306115
|
Update for Revolt changes
|
2021-10-14 17:50:40 -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
|
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 |
|
Aaron Piotrowski
|
ca122a9035
|
Update for Revolt changes
|
2021-09-19 10:20:04 -05:00 |
|
Aaron Piotrowski
|
24a1dce81c
|
Rename Future::join() to await()
|
2021-09-18 23:05:16 -05:00 |
|
Aaron Piotrowski
|
c98c9a40d2
|
Rename Amp\Future\spawn() to Amp\coroutine()
Added delay() and trap() functions.
|
2021-09-18 23:04:20 -05:00 |
|
Aaron Piotrowski
|
a35a6da724
|
Rename first() to race()
Mirrors name in JS.
|
2021-09-16 21:01:18 -05:00 |
|
Aaron Piotrowski
|
a7f31d1b98
|
Fix future completing then cancelling join
If both callbacks are enqueued they may be both invoked, so only throw to the suspension if the promise isn't resolved.
|
2021-09-16 20:54:19 -05:00 |
|
Aaron Piotrowski
|
e0fe64c495
|
Add settle()
|
2021-09-16 20:49:55 -05:00 |
|
Aaron Piotrowski
|
81b9c749a7
|
Add some()
|
2021-09-16 20:49:42 -05:00 |
|
Aaron Piotrowski
|
bfe8d635b8
|
Export Pipeline to separate repo
|
2021-09-05 23:47:06 -05:00 |
|
Aaron Piotrowski
|
b757b74c62
|
Test merge disposal; provide exception to dispose callbacks
Plus some doc updates.
|
2021-09-04 09:58:01 -05:00 |
|