1
0
mirror of https://github.com/danog/amp.git synced 2024-11-27 04:24:42 +01:00
Commit Graph

984 Commits

Author SHA1 Message Date
Niklas Keller
3b6ca19dfe Move promise documentation to own document + success / failure, fixes #97 2017-03-20 21:21:22 +01:00
Niklas Keller
9816bd9828 Move promise combinators into their own document, fixes #102 2017-03-20 21:08:03 +01:00
Niklas Keller
3ede997e6e Shorten struct examples 2017-03-19 21:03:33 +01:00
Adam Englander
d23a7dbfe6
Add doc for \Amp\Struct 2017-03-18 16:50:48 -07:00
Niklas Keller
a954f73d8e Update namespacing to be compatible with what's actually used 2017-03-18 21:52:23 +01:00
Niklas Keller
3665df6e96 Fix tabs → spaces 2017-03-18 08:42:26 +01:00
Niklas Keller
78160efede Fix broken link 2017-03-18 08:40:36 +01:00
Niklas Keller
4f3574bf1e Add documentation stubs 2017-03-18 08:39:41 +01:00
Niklas Keller
813061dae5 Update headlines to not include Loop:: 2017-03-18 08:26:31 +01:00
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