1
0
mirror of https://github.com/danog/amp.git synced 2024-11-26 20:15:00 +01:00
Commit Graph

1291 Commits

Author SHA1 Message Date
Niklas Keller
bdbb2a992c Disable xdebug completely for Travis 2017-05-26 11:42:25 +02:00
Niklas Keller
d0bdcf18d6 Run php-cs-fixer without xdebug 2017-05-25 20:13:10 +02:00
Bob Weinand
550713c74b Merge pull request #139 from amphp/null-cancel
Implement NullCancellationToken
2017-05-25 12:57:13 +02:00
Niklas Keller
332869987b Implement NullCancellationToken 2017-05-24 10:34:54 +02:00
Aaron Piotrowski
cd252e4165 Invoke callback on all non-zero statuses 2017-05-24 00:09:04 -05:00
Niklas Keller
ef6c2b10ee Micro-optimize interval = 0 if 2017-05-23 20:17:34 +02:00
Niklas Keller
38ef4d9ffa Fix issues with interval = 0 repeat watchers, fixes #131 2017-05-23 19:46:23 +02:00
Niklas Keller
dbc853c3f1 Fix timers with interval = 0 in NativeDriver 2017-05-22 19:54:14 +02:00
Aaron Piotrowski
5bca41ade4 Cleaner coroutine continuation 2017-05-22 12:28:29 -05:00
Niklas Keller
5dad46f297 Implement additional cancellation token methods 2017-05-22 19:26:09 +02:00
Bob Weinand
7e500548df Merge pull request #133 from amphp/env-driver
Allow setting the loop driver via the env
2017-05-20 18:12:17 +02:00
Aaron Piotrowski
335196c201 Merge pull request #135 from amphp/flat_callstack
Avoid coroutine callstack explosion upon yielding succeeded Promises
2017-05-20 10:35:54 -05:00
Bob Weinand
26dfafe00c Avoid coroutine callstack explosion upon yielding succeeded Promises 2017-05-20 16:31:49 +02:00
Niklas Keller
9d18a1f8bd Readd missing depth property 2017-05-20 09:46:01 +02:00
Niklas Keller
e8e26d79e7 Revert "Drop max continuation depth"
This reverts commit cdf28fa938.

As streams always buffer before applying backpressure, these might
result in a stack overflow. Another example is file streaming with
the blocking driver, which always immediately succeeds.
2017-05-20 09:40:56 +02:00
Niklas Keller
e589f2d935 Remove fallback part from error messages 2017-05-19 16:51:20 +02:00
Niklas Keller
a289e7e41d Increase testNestedLoopSignalDispatch timeouts 2017-05-19 16:47:55 +02:00
Niklas Keller
28bb6068f1 Allow setting the loop driver via the env 2017-05-19 16:17:11 +02:00
Bob Weinand
4fe48c8aec Fix #132 (TypeError calling Driver::disable()) 2017-05-19 15:57:49 +02:00
Niklas Keller
03d1630b69 Add further tests for cancellation 2017-05-16 21:56:52 +02:00
Niklas Keller
39dd36efdc Fix cancellation token example 2017-05-16 21:46:52 +02:00
Niklas Keller
fdf18dedd7 Fix tabs → spaces 2017-05-16 20:08:27 +02:00
Niklas Keller
47357f209d Add basic cancellation docs 2017-05-16 18:51:48 +02:00
Aaron Piotrowski
be2a9f8c07 Merge pull request #130 from amphp/cancellation
Implement cancellation primitives, resolves #125
2017-05-16 11:32:42 -05:00
Aaron Piotrowski
086f045003 Remove event to stream map
Unnecessary as the watcher object is available in cancel().
2017-05-16 11:22:40 -05:00
Bob Weinand
6e52f3e211 Fix potential issues when operating on destroyed uv handles in shutdown sequence 2017-05-16 18:17:12 +02:00
Aaron Piotrowski
de783b8eb1 Do not call uv_* functions on expired timers 2017-05-15 12:41:43 -05:00
Niklas Keller
61a7596106 Implement cancellation primitives, resolves #125 2017-05-14 23:07:49 +02:00
Aaron Piotrowski
40299959bf Remove calls to uv_close()
Watchers are closed on garabage collection if necessary.
2017-05-13 10:12:03 -05:00
Aaron Piotrowski
51ab8cb134 Only poll again on UV_EAGAIN 2017-05-13 10:11:00 -05:00
Aaron Piotrowski
3f1f9f41ca Do not call uv_close() if other watchers on the same stream exist 2017-05-11 10:39:31 -05:00
Niklas Keller
dd5f7ffd95 Add 'event-loop' keyword to composer.json 2017-05-09 12:31:17 +02:00
Bob Weinand
f063a8311a Shutup "style" checker.... 2017-05-07 19:14:13 +02:00
Bob Weinand
6c03950abd Do not run uv tests separately in its own process 2017-05-07 19:02:22 +02:00
Bob Weinand
55de30c53d Properly run gc_collect_cycles() between tests
This avoids leaking file descriptors with Uv
2017-05-07 13:09:59 +02:00
Niklas Keller
5d36c15a1c Add changelog for 2.0.0, fixes #92 2017-05-04 17:27:50 +02:00
Niklas Keller
d1ef36fa10 Add basic coroutine docs, closes #90 2017-05-04 12:23:54 +02:00
Niklas Keller
de9bf8f5d1 Add Makefile that automatically setups, runs tests and checks code style 2017-05-04 08:44:44 +02:00
Niklas Keller
5c81015ddb Increase repeat watcher to make test failure more unlikely 2017-05-03 22:21:57 +02:00
Niklas Keller
dae06d0afa Add notes about timer drift, fixes #80 2017-05-03 15:50:03 +02:00
Niklas Keller
50b37b23ef Add asyncCall 2017-05-03 15:21:49 +02:00
Niklas Keller
e450bbe70a Document coroutine helpers, fixes #100 2017-05-03 15:12:15 +02:00
Niklas Keller
5f3c0620a6 Remove already documented items from managing-concurrency.md
Merged a small part into the initial docs/README.md, most parts were already documented elsewhere. Generator docs might be helpful for building the coroutines documentation.
2017-05-03 13:12:42 +02:00
Niklas Keller
73df7791f5 Add additional inter-docs links 2017-05-03 12:49:56 +02:00
Niklas Keller
1a7cff7121 Document Iterator\merge and Iterator\concat, fixes #106 2017-05-03 12:43:46 +02:00
Niklas Keller
8ac828db37 Document Iterator\map and Iterator\filter, fixes #105 2017-05-03 12:38:51 +02:00
Niklas Keller
93df316ca9 Document fromIterable 2017-05-03 12:30:26 +02:00
Niklas Keller
4f00323060 Improve iterator docs 2017-05-03 12:20:16 +02:00
Niklas Keller
c002f2b23e Document iterators, fixes #91, fixes #99 2017-05-03 12:12:39 +02:00
Niklas Keller
def42c496a Fix code style 2017-05-02 22:09:11 +02:00