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

99 Commits

Author SHA1 Message Date
Niklas Keller
1bf42c65eb Rename lib → src 2021-12-02 18:20:10 +01:00
Aaron Piotrowski
27219ddbc0
Update for removal of Revolt\launch 2021-10-17 13:24:55 -05:00
Aaron Piotrowski
b911e589fe
Update phpunit-util dependency 2021-10-14 18:10:10 -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
c98c9a40d2
Rename Amp\Future\spawn() to Amp\coroutine()
Added delay() and trap() functions.
2021-09-18 23:04:20 -05:00
Aaron Piotrowski
bfe8d635b8
Export Pipeline to separate repo 2021-09-05 23:47:06 -05:00
Aaron Piotrowski
7e30ee0c2c
Import Future
Co-authored-by: Niklas Keller <me@kelunik.com>
2021-08-29 12:18:05 -05:00
Niklas Keller
ef23e16c88 Improve composer.json 2021-04-05 21:28:42 +02:00
Aaron Piotrowski
820bbd2058
Use Revolt Futures, drop Promises 2021-04-04 13:10:23 -05:00
Niklas Keller
9a568b133f Use microtasks for promise callbacks 2021-03-27 16:23:32 +01:00
Niklas Keller
2f778fe069 Use revolt
Removes deprecated APIs.
2021-03-26 22:34:32 +01:00
Aaron Piotrowski
7612ef3f1e
Drop direct conversion of React promises
React promises are still supported using Amp\Promise\adapt().
2020-10-30 10:19:12 -05:00
Aaron Piotrowski
27a8facd6a
Update tests for fibers 2020-10-02 13:40:29 -05:00
Aaron Piotrowski
b65823e0bb
Refactor Coroutine to use await()
Dropped polyfill, ext-fiber will be required to run any v3 code.
2020-09-26 22:22:07 -05:00
Aaron Piotrowski
9f68bd4046
Remove Driver::run() and stop()
Added Driver::isRunning().

Driver now must be started and stopped through an instance of DriverControl.
2020-09-26 12:50:30 -05:00
Aaron Piotrowski
5f6db028ab
Initial fiber support 2020-09-24 12:53:32 -05:00
Niklas Keller
05483cdbef
Enforce timer interval as minimum time to execution (#319)
Co-authored-by: Aaron Piotrowski <aaron@trowski.com>
2020-07-14 21:45:35 +02:00
Niklas Keller
8ee469be90 Improve type definition for Amp\call 2020-04-19 15:38:36 +02:00
Niklas Keller
a75164b66b Add psalm static analysis on level 6
This also fixes mixed types in some cases.
2020-03-28 12:23:46 +01:00
Niklas Keller
a87c630531 Fix branch alias 2020-03-22 08:13:28 +01:00
Niklas Keller
4d849191e5
Fix build on Travis (#281) 2019-09-21 23:17:45 +02:00
Niklas Keller
c12828081f Fix exceptions bubbling from Coroutine::__destruct
This has been an edge case potentially hiding some exceptions. The tests have been refactored to error if the loop has watchers leaking from one test to another test.
2019-05-31 11:38:02 -05:00
Aaron Piotrowski
19bcf9b33d
Use shared style repo 2019-02-25 23:09:26 -06:00
Eugene Kirillov
bbd083ffc9 Update contributing.md 2018-03-16 15:42:32 +02:00
Niklas Keller
f2579bd0ea Add phpstan 2017-12-05 08:48:41 +01:00
Aaron Piotrowski
c260e2ea51
Define target platform in composer.json and fix .travis.yml 2017-12-02 10:18:59 -06:00
Niklas Keller
62e7956c93 Minor changes to composer.json for v2.0.0 2017-06-15 17:50:28 +02:00
Niklas Keller
dd5f7ffd95 Add 'event-loop' keyword to composer.json 2017-05-09 12:31:17 +02:00
Niklas Keller
79ab41e5bf Update php-cs-fixer to version 2 and upgrade rules
This also fixes the code style according to the new rules.
2017-04-24 16:22:02 +02:00
Niklas Keller
8caae2253f Allow recording stacktraces to debug double resolution 2017-03-29 17:25:44 +02:00
Niklas Keller
6f48a4b82f Increase PHPUnit version, as builds seem to hang with --prefer-lowest otherwise 2017-03-17 13:00:10 +01:00
Aaron Piotrowski
7ad10f5d7d Add support for React promises 2017-03-11 09:17:43 -06:00
Niklas Keller
fe88413a17 Upgrade to PHPUnit 6
This commit removes Humbug, as it's no longer maintained and not
compatible with PHPUnit 6.
2017-03-11 14:57:03 +01:00
Niklas Keller
dd8993b98e Fix AsyncInterop → Amp in ErrorHandler 2017-03-10 22:09:49 +01:00
Niklas Keller
0be9ae9ade Switch from AsyncInterop\Promise to Amp\Promise 2017-03-10 21:58:46 +01:00
Niklas Keller
e64bbfb9f5 Add Loop::set, auto-wrapping, fixup things 2017-03-10 21:31:57 +01:00
Niklas Keller
21561661a2 Fixup after repository merge 2017-03-10 19:19:32 +01:00
Niklas Keller
dfa3b82485 Require PHPUnit 5.7 to remove warning on PHP 7.2 2017-01-07 19:41:04 +01:00
Niklas Keller
7e40a05dc7 Require PHPUnit 5 as lowest version 2017-01-07 18:31:25 +01:00
Niklas Keller
c7aa4590bf Fix promise test requirement 2017-01-07 15:53:55 +01:00
Niklas Keller
ae69e92266 Update to promise 0.4.0 and event-loop 0.5.0, add humbug config 2017-01-07 13:47:45 +01:00
Niklas Keller
0b899f5bcd Change namespace to AsyncInterop 2017-01-07 12:23:28 +01:00
Aaron Piotrowski
0659f6f3ee Update to loop standard v0.4 2016-12-29 16:54:10 -06:00
Aaron Piotrowski
5651240615 Update to promise spec v0.3
Dropped strict-types due to spec requiring weak types in callbacks.
2016-12-29 16:29:27 -06:00
Bob Weinand
2c0d6064af Update for setErrorHandler() & getWatcherId + new test with stop() 2016-12-23 01:43:09 +01:00
Aaron Piotrowski
9927ad5b4f Awaitable → Promise 2016-11-14 13:59:21 -06:00
Aaron Piotrowski
94e66ce08b Update loop standard dependency 2016-09-09 18:05:13 -05:00
Aaron Piotrowski
3755a3c9e9 Update loop dependency 2016-09-09 17:58:53 -05:00
Bob Weinand
7c9a004024 Fix composer build (0.2 for event-loop) 2016-08-15 15:47:26 +02:00