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 |
|
Aaron Piotrowski
|
3d5c982f33
|
Fix version alias
|
2021-09-19 10:27:42 -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
|
0ce29b3b22
|
Unsubscribe from token in finally
|
2021-09-18 22:41:58 -05:00 |
|
Aaron Piotrowski
|
b63b26b063
|
Throw if Future::iterate() is provided something other than futures
|
2021-09-17 14:52:07 -05:00 |
|
Aaron Piotrowski
|
0d3f068fbf
|
Remove leftover iterator_to_array
Future::iterate() handles both arrays and iterators.
|
2021-09-17 14:51:33 -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
|
b5b40cff9c
|
Remove unused
MultireasonException has been replaced with CompositeException.
|
2021-09-15 23:14:10 -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 |
|
Aaron Piotrowski
|
41d3c4c177
|
Loop::queue() instead of defer()
|
2021-09-03 18:32:23 -05:00 |
|
Aaron Piotrowski
|
de7f7e0b64
|
Fix some Psalm issues
|
2021-09-03 18:15:31 -05:00 |
|
Aaron Piotrowski
|
a236223eac
|
Combine Future/Suspension arrays
|
2021-09-03 18:00:25 -05:00 |
|
Aaron Piotrowski
|
73fb73614e
|
Reduce overhead for timeout cancellation tokens
|
2021-08-30 12:07:07 -05:00 |
|
Aaron Piotrowski
|
eab76ca303
|
Cancellable joins
|
2021-08-29 23:28:25 -05:00 |
|
Aaron Piotrowski
|
5b95aa590c
|
Update for Revolt changes and Future import
|
2021-08-29 12:18:24 -05:00 |
|
Aaron Piotrowski
|
7e30ee0c2c
|
Import Future
Co-authored-by: Niklas Keller <me@kelunik.com>
|
2021-08-29 12:18:05 -05:00 |
|
Aaron Piotrowski
|
09fa422918
|
Move Pipeline creation
EmitSource::pipe() isn't always used, so the property seems to make more sense in PipelineSource.
|
2021-04-06 15:38:21 -05:00 |
|
Aaron Piotrowski
|
de1a292903
|
Use only a single fiber in AsyncGenerator
|
2021-04-06 11:29:00 -05:00 |
|
Niklas Keller
|
ef23e16c88
|
Improve composer.json
|
2021-04-05 21:28:42 +02:00 |
|