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

1386 Commits

Author SHA1 Message Date
Niklas Keller
ec2889e633 🚚 Move util docs into their own directory 2017-05-02 21:14:29 +02:00
Niklas Keller
a4e0466d5b 📝 Add docs for setState and getState, fixes #89 2017-05-02 19:44:08 +02:00
Niklas Keller
28820fa459 Ignore __destruct for coverage 2017-05-02 19:30:34 +02:00
Niklas Keller
ad08ffba1d Add missing test case in ProducerTraitTest 2017-05-02 19:13:53 +02:00
Niklas Keller
1419bd6c0c Remove unused imports 2017-05-02 19:04:25 +02:00
Niklas Keller
783fe8c4f4 Add asyncCoroutine and ReactPromise tests 2017-05-02 18:59:52 +02:00
Niklas Keller
3c0d4153c7 🚚 Rename basic examples directory to event-loop 2017-05-02 18:36:02 +02:00
Niklas Keller
141875b133 🔥 Kill pipe and capture
Use Amp\call instead.
2017-05-02 18:32:59 +02:00
Niklas Keller
14cea0cbf0 Added further Internal\Producer tests 2017-05-02 18:10:10 +02:00
Niklas Keller
f10321e5f8 📝 Add wait, rethrow and timeout docs, fixes #104 2017-05-02 17:54:10 +02:00
Niklas Keller
692cabf8c4 📝 Improve the promise / deferred docs 2017-05-02 17:17:11 +02:00
Niklas Keller
1b1ea5688c Add signal and stdin examples 2017-05-02 13:32:58 +02:00
Niklas Keller
2a5600f027 Use asyncCoroutine instead of manual rethrow + new Coroutine 2017-05-02 13:11:52 +02:00
Niklas Keller
c29da96f3e Fix remaining Pause → Delayed in examples and docs 2017-05-02 07:25:22 +02:00
Niklas Keller
b5770ba64a Rename missed Pause to Delayed 2017-05-02 07:22:53 +02:00
Aaron Piotrowski
835e617054 More stream → iterator
Hopefully that's all of them…
2017-05-02 07:07:43 +02:00
Aaron Piotrowski
da9b724f5b getIterator → iterate 2017-05-02 07:07:43 +02:00
Aaron Piotrowski
91c8da9fec Replace more occurrences of stream 2017-05-02 07:07:43 +02:00
Aaron Piotrowski
f78328822c Allow for debugging of double iterator completion 2017-05-02 07:07:43 +02:00
Aaron Piotrowski
8ccb0643c1 Fail tests if exception is not thrown from advance() 2017-05-02 07:07:43 +02:00
Aaron Piotrowski
45481a710c Squash leftover Stream references 2017-05-02 07:07:33 +02:00
Aaron Piotrowski
9a2a4966c6 Fix code style issues 2017-05-02 07:07:20 +02:00
Aaron Piotrowski
0d2095e14d Rename examples directory 2017-05-02 07:07:20 +02:00
Aaron Piotrowski
38d53304ae Stream → Iterator 2017-05-02 07:07:20 +02:00
Aaron Piotrowski
4992d3ebac Update stream tests 2017-05-02 07:06:20 +02:00
Aaron Piotrowski
a096a36f9a Emitter::resolve → Emitter::complete 2017-05-02 07:04:30 +02:00
Aaron Piotrowski
7e6eb3689e Update stream functions 2017-05-02 07:04:30 +02:00
Aaron Piotrowski
4935dddc84 Refactor Streams
Dropped original Stream interface in favor of the Iterator interface. Eliminates subscriber timing issues and simplifies Stream usage.
2017-05-02 07:04:10 +02:00
Niklas Keller
1286087c06 Rename Pause to Delayed
Pause doesn't cover the delayed value use case.
2017-05-02 07:02:02 +02:00
Niklas Keller
cc32620f5c Fix phpcov executable 2017-04-26 22:30:44 +02:00
Niklas Keller
17224616aa Add more grace periods for timing dependent tests 2017-04-26 21:37:09 +02:00
Niklas Keller
34d4206e8f Fix coverage merge executable 2017-04-26 21:23:45 +02:00
Niklas Keller
431212989a Remove incompatible wget option 2017-04-26 20:55:04 +02:00
Niklas Keller
2ec682b1c2 Exclude memoryleak group for uv tests 2017-04-26 20:52:08 +02:00
Niklas Keller
d9b36b940d Ignore platform requirements for php-coveralls as well 2017-04-26 20:46:42 +02:00
Niklas Keller
592ca615b4 Move coverage tool installation to install step to benefit from caching 2017-04-26 20:41:10 +02:00
Niklas Keller
37026dbaae Put memory leak tests into a group to enable skipping
Also fixes the missing directory on Travis.
2017-04-26 20:27:59 +02:00
Niklas Keller
136ccc7dad Run UV tests in a separate PHP instance 2017-04-26 20:20:08 +02:00
Niklas Keller
b674bb994a Add PHP_CS_FIXER_IGNORE_ENV for running php-cs-fixer on PHP 7.2 2017-04-26 09:59:54 +02:00
Aaron Piotrowski
8ca8009074 Remove note about yielding in finally
Yielding in finally will work as long as the generator is not force closed (for example, a yielded promise is never resolved and the coroutine object is subsequently destroyed).
2017-04-25 14:29:10 -05:00
Aaron Piotrowski
45476b76a4 Reuse watcher resources when possible
Previously, disabling the sole read or write watcher for a stream would result in a duplicate UV-watcher for that stream being created. This keeps track of which UV-watchers are associated with a stream until the watcher is cancelled (not just disabled).
2017-04-24 19:19:22 -05:00
Aaron Piotrowski
e1491b1925 Handle invalid yield like a failed promise 2017-04-24 13:08:30 -05:00
Niklas Keller
14d6b45b0a --ignore-platform-reqs on Travis because php-cs-fixer
See https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/2722.
2017-04-24 18:59:55 +02:00
Aaron Piotrowski
34192ceca5 Drop Coroutine::dispose() 2017-04-24 11:10:05 -05:00
Niklas Keller
c3fc6659cd Revert to assertEquals where order might be different, remove strict rule 2017-04-24 16:28:56 +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
0e376fbed9 Increase variation grace period in tests 2017-04-24 15:27:04 +02:00
Niklas Keller
e9d48a68d5 Rename createRunnable to asyncCoroutine and createCallable to coroutine 2017-04-24 15:27:04 +02:00
Niklas Keller
05670678e1 Fix tests regarding UnionTypeError 2017-04-24 15:27:04 +02:00
Niklas Keller
dc21d094c5 Throw error in case the loop throws during wait 2017-04-24 15:27:04 +02:00