1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00
Commit Graph

1054 Commits

Author SHA1 Message Date
Aaron Piotrowski
e43f9afc8f Refactor functions to remove circular refs
This will provide for faster garbage collection of unused promises/deferreds/etc.
2017-04-07 10:51:57 -05:00
Aaron Piotrowski
97dd8d933e Forward UV error to loop error handler and disable watchers 2017-04-06 11:18:33 -05:00
Aaron Piotrowski
d01ee68dd2 Null circular reference on resolution 2017-04-06 09:24:21 -05:00
Aaron Piotrowski
cdf28fa938 Drop max continuation depth
It seems unlikely a real-world application would run out of memory due to call stack depth for normal coroutine continuations (that is, where infinite recursion is not root problem). Hopefully time will not prove me wrong…
2017-03-30 23:45:54 -05:00
Aaron Piotrowski
3ee5810fd3 Merge pull request #115 from amphp/double-resolution-debug
Allow recording stacktraces to debug double resolution
2017-03-29 23:27:57 -05:00
Niklas Keller
8caae2253f Allow recording stacktraces to debug double resolution 2017-03-29 17:25:44 +02:00
Aaron Piotrowski
2f7e9a0746 Run returned generator as coroutine from onResolve and onEmit callbacks 2017-03-27 18:37:55 -05:00
Aaron Piotrowski
173549ebba Halt recursive runs with each call to stop, addresses #84 2017-03-27 11:42:51 -05:00
Aaron Piotrowski
cb717952f1 Validate number of required promises 2017-03-27 11:42:11 -05:00
Aaron Piotrowski
c464e070e4 s/fail/succeed 2017-03-26 12:53:26 -05:00
Aaron Piotrowski
67f9f4a569 Drop lift and Promise\map; add required param to Promise\some 2017-03-26 12:34:34 -05:00
Niklas Keller
995f6f1f6c Disable coverage by default, increase timeout for signal test 2017-03-25 21:47:30 +01:00
Niklas Keller
c838a0ae8f Only cache dist files on Travis and use --prefer-dist 2017-03-25 21:40:22 +01:00
Niklas Keller
9def47e50d Run memory leak tests separately on Travis 2017-03-25 20:12:33 +01:00
Niklas Keller
9ef99a5175 Make PHPUnit on Travis verbose 2017-03-25 20:05:55 +01:00
Niklas Keller
ff5fef4b93 Fix UV executing multiple IO watchers in different ticks, fixes #85 2017-03-25 19:52:17 +01:00
Aaron Piotrowski
95b3f62497 Merge pull request #111 from amphp/onEmit
Rename Stream::listen to Stream::onEmit
2017-03-21 14:05:45 -05:00
Niklas Keller
2aa91a6c25 Rename Stream::listen to Stream::onEmit 2017-03-21 18:29:51 +01:00
Aaron Piotrowski
4507c358a5 Merge pull request #86 from amphp/onResolve
Rename Promise::when to Promise::onResolve
2017-03-21 12:14:03 -05:00
Niklas Keller
ce269fa516 Rename Promise::when to Promise::onResolve, resolves #77 2017-03-21 17:23:37 +01:00
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