1
0
mirror of https://github.com/danog/amp.git synced 2024-12-02 09:27:46 +01:00
Commit Graph

1275 Commits

Author SHA1 Message Date
Niklas Keller
f7344f15d0 Remove 7.1.0 requirement, as Travis now supports 7.1.3 2017-03-17 14:06:03 +01:00
Niklas Keller
e652c2cf01 Remove --prefer-lowest as we don't have any dependencies
And for require-dev lowest doesn't make sense.
2017-03-17 13:37:05 +01:00
Niklas Keller
6f48a4b82f Increase PHPUnit version, as builds seem to hang with --prefer-lowest otherwise 2017-03-17 13:00:10 +01:00
Niklas Keller
b7ff2acb7c Use PHP 7.1.0 on Travis for now, as 7.1.1 and 7.1.2 segfault 2017-03-17 12:50:30 +01:00
Aaron Piotrowski
39b95255d2 Reduce code duplication in Coroutine
Hot path is still duplicated for performance, but conversion of non-promise values to promises should be a single method.
2017-03-15 19:10:23 -05:00
Aaron Piotrowski
86b494a5c4 Throw Error if registering signal handler fails 2017-03-15 19:08:00 -05:00
Aaron Piotrowski
a927b3cb06 Separate functions into Promise and Stream namespaces 2017-03-15 19:02:04 -05:00
Niklas Keller
ea67e113b2 Add test for loop accessor 2017-03-15 08:40:58 +01:00
Niklas Keller
01c58ae90e Fix EvDriver with throwing onSignal callback 2017-03-15 08:33:04 +01:00
Niklas Keller
5663f3a94e Add test for isSupported 2017-03-15 08:32:05 +01:00
Niklas Keller
660bdf626d Document ::reference / ::unreference, fixes #79 2017-03-15 08:26:36 +01:00
Niklas Keller
083c82c158 Fix typos 2017-03-15 08:13:13 +01:00
Niklas Keller
c711c1c2d2 Remove test debugging leftovers 2017-03-15 07:34:25 +01:00
Niklas Keller
d61709db45 Re-enable generator test and fix it 2017-03-15 07:32:43 +01:00
Niklas Keller
5b52b94fe0 Test that loop drivers rethrow and run generators as coroutines 2017-03-15 00:34:37 +01:00
Aaron Piotrowski
a566ff0c99 Fix signal tests 2017-03-14 16:47:54 -05:00
Niklas Keller
45ea818883 Test Amp\capture for non-promise 2017-03-14 22:36:24 +01:00
Niklas Keller
73149b933f Ignore DriverFactory for code coverage 2017-03-14 22:33:45 +01:00
Niklas Keller
dfab1d885f Add missing coroutine tests 2017-03-14 22:32:14 +01:00
Niklas Keller
179eb3d6f8 Add 1ms grace period for timing tests 2017-03-14 22:18:47 +01:00
Niklas Keller
d8f3810310 Add more tests for functions.php 2017-03-14 22:15:36 +01:00
Niklas Keller
4442f6cd33 Add test for Producer being already resolved 2017-03-14 22:05:45 +01:00
Aaron Piotrowski
6b9ec609c1 Add UnionTypeError 2017-03-14 13:15:31 -05:00
Aaron Piotrowski
44c5a1b1dc Cleanup React promise adaption 2017-03-14 13:15:31 -05:00
Niklas Keller
e92bd57030 Remove outdated @throws RuntimeException 2017-03-14 19:05:38 +01:00
Niklas Keller
c13e8e3a66 Use Error instead of InvalidArgumentException, remove test file 2017-03-14 18:44:44 +01:00
Niklas Keller
ee11b70395 Fix remaining InvalidWatcherError renames 2017-03-14 18:24:14 +01:00
Aaron Piotrowski
5bdfccde97 Update DriverTest 2017-03-14 11:50:24 -05:00
Aaron Piotrowski
1dadd4f0da InvalidWatcherException → InvalidWatcherError 2017-03-14 11:48:27 -05:00
Aaron Piotrowski
2ab7403ded More code coverage ignores; throw Error instead of DomainException 2017-03-14 11:44:19 -05:00
Niklas Keller
35ac983c53 Add appropriate coverage ignores to Driver.php 2017-03-14 11:01:11 +01:00
Aaron Piotrowski
d7353d4d8f Catch watcher callback exceptions individually
Exceptions thrown from watcher callbacks are now forwarded to the loop error handler without ending the current tick. Fixes #74.
2017-03-14 00:20:05 -05:00
Aaron Piotrowski
fd7587b0fd Fix risky tests
Fixes #81.
2017-03-13 18:54:08 -05:00
Niklas Keller
76c412a802 Update managing-concurrency to v2, updating the docs for helpers still outstanding, fixes #78 2017-03-13 15:49:25 +01:00
Niklas Keller
85be4e03f4 Fix use statements and fix examples 2017-03-13 14:21:43 +01:00
Niklas Keller
4d12d81634 Document Loop::run() optional callback 2017-03-13 14:14:51 +01:00
Niklas Keller
20acaf123e Remove unsused code from InvalidWatcherException, add handle tests for drivers 2017-03-13 13:56:46 +01:00
Niklas Keller
9df6b45083 Add intro README for the docs directory 2017-03-13 13:23:35 +01:00
Niklas Keller
7a96ad2772 Fix typo 2017-03-13 13:19:23 +01:00
Niklas Keller
62f6e43771 Improve README, add documentation 2017-03-13 13:16:59 +01:00
Aaron Piotrowski
f187d4b31a Accept React promises in rethrow, wait, timeout, pipe, and capture
Fixes #75.
2017-03-13 07:17:06 +01:00
Aaron Piotrowski
8b7fb9ece3 Merge pull request #72 from amphp/issue-68
Implement yielding arrays as implicit all operator
2017-03-12 22:45:31 -05:00
Bob Weinand
fb7d4e4e12 Merge pull request #73 from amphp/examples
Add examples
2017-03-13 01:27:49 +01:00
Niklas Keller
77bd05b807 Fix tests and Producer React adaption 2017-03-12 22:09:19 +01:00
Niklas Keller
0006c6cb56 Fix async-interop docblock leftover 2017-03-12 21:39:17 +01:00
Niklas Keller
8f903b62db Add more tests for React promise adaption in various places 2017-03-12 21:02:26 +01:00
Niklas Keller
0649fdc618 Add structure to examples, add basic timer example 2017-03-12 19:54:52 +01:00
Niklas Keller
9797e7a4d0 Rename example to examples 2017-03-12 19:47:08 +01:00
Niklas Keller
e8ea4e2ba9 Implement yielding arrays as implicit all operator, fixes #68 2017-03-12 19:42:25 +01:00
Niklas Keller
ba0e9ffb93 Mark v2 as unstable 2017-03-12 18:33:12 +01:00