1
0
mirror of https://github.com/danog/amp.git synced 2024-12-11 08:59:46 +01:00
Commit Graph

1363 Commits

Author SHA1 Message Date
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
Aaron Piotrowski
0d96ca4434 Merge pull request #71 from amphp/async-interop-merge
AsyncInterop Merge
2017-03-12 12:31:14 -05:00
Aaron Piotrowski
2cc4cf9d0b Fix use statement order 2017-03-12 12:23:48 -05:00
Aaron Piotrowski
f040e8801e Fast return on void watcher callback 2017-03-12 12:23:27 -05:00
Aaron Piotrowski
cd4328ab48 Merge branch 'react-compatibility' 2017-03-12 11:38:48 -05:00
Pieter Hordijk
2db7bed1b6 Fixed typos an promise -> a promise 2017-03-12 17:36:07 +01:00
Niklas Keller
d748855a51 Fix some risky tests 2017-03-12 17:33:46 +01:00
Niklas Keller
16da1a869e Update README to v2 2017-03-12 12:44:32 +01:00
Niklas Keller
b95b49c101 Fix copyright dates 2017-03-12 12:38:18 +01:00
Niklas Keller
f5f9410ec0 Rename Factory to DriverFactory, rename supported to isSupported 2017-03-12 11:25:21 +01:00
Niklas Keller
766b3224d1 Rename drivers to have a Driver instead of Loop suffix 2017-03-12 11:21:44 +01:00
Aaron Piotrowski
a98fe5cdf6 Rethrow React promise rejections
Adapt React promises returned from watcher callbacks to promises so that rethrow is called on them.
2017-03-11 09:17:55 -06:00
Aaron Piotrowski
7ad10f5d7d Add support for React promises 2017-03-11 09:17:43 -06:00