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

16 Commits

Author SHA1 Message Date
Aaron Piotrowski
3926b3f978
Rename launch to async
Thus we've come full circle :P
2021-12-02 13:44:10 -06: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
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
27219ddbc0
Update for removal of Revolt\launch 2021-10-17 13:24:55 -05:00
Aaron Piotrowski
4f21306115
Update for Revolt changes 2021-10-14 17:50:40 -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
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
bfe8d635b8
Export Pipeline to separate repo 2021-09-05 23:47:06 -05:00
Aaron Piotrowski
eab76ca303
Cancellable joins 2021-08-29 23:28:25 -05:00
Aaron Piotrowski
7e30ee0c2c
Import Future
Co-authored-by: Niklas Keller <me@kelunik.com>
2021-08-29 12:18:05 -05:00