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

1282 Commits

Author SHA1 Message Date
Aaron Piotrowski
e5c4c612f8 Use onWritable watcher instead of repeat
The behavior of repeat with a 0 timeout is unpredictable in various loop implementations.
2017-01-06 10:51:50 -06:00
Aaron Piotrowski
a47fc2bc01 Don't call uv_stop()
libuv will actually stop mid-tick, making the behavior inconsistent with the other loop implementations.
2017-01-06 10:50:05 -06:00
Aaron Piotrowski
e169bb649c Remove unnecessary temp variable 2017-01-06 10:21:58 -06:00
Bob Weinand
79355641ed Add a test ensuring that watchers are enabled in the actual next tick 2017-01-06 17:21:37 +01:00
Aaron Piotrowski
fbdc611e44 Activate watchers at begging of tick instead of end 2017-01-06 10:15:54 -06:00
Aaron Piotrowski
3e0cd85b67 Stop watchers in EvLoop::__destruct() to avoid segfault 2017-01-05 17:38:33 -06:00
Aaron Piotrowski
9706815714 Fix signals in multiple loops using event and ev extensions with epoll backend 2017-01-05 17:32:03 -06:00
Aaron Piotrowski
c80f264e7e Remove unneeded support check 2017-01-05 17:21:30 -06:00
Aaron Piotrowski
33d9995b8c Increase timeouts to avoid xdebug issues
Tests would sometimes fail due to xdebug slowing down the loop.
2017-01-05 15:06:44 -06:00
Aaron Piotrowski
02c2fcf0fa Add implementation using event extension 2017-01-05 14:08:33 -06:00
Aaron Piotrowski
06e50bdb88 Fix docblock 2017-01-05 12:39:34 -06:00
Aaron Piotrowski
80900189c9 Fix visibility of deactivate() 2017-01-05 12:39:10 -06:00
Niklas Keller
372272601b Merge pull request #130 from joshdifabio/change-namespace
Change namespace to AsyncInterop\Loop
2017-01-05 11:19:16 +01:00
Aaron Piotrowski
9ff73ac681 Swap production and dev definitions for Deferred and Emitter 2017-01-04 10:24:51 -06:00
Aaron Piotrowski
210b6ff258 Observable → Stream 2017-01-03 19:10:27 -06:00
Josh Di Fabio
7e708eaa0e Merge branch 'master' into change-namespace 2017-01-03 20:01:26 +00:00
Bob Weinand
f784ddc9d6 Merge pull request #132 from joshdifabio/patch-1
Fix typo 'idenfier'
2017-01-03 19:22:56 +01:00
Josh Di Fabio
638700330d Fix typo 'idenfier' 2017-01-03 18:16:50 +00:00
Josh Di Fabio
b9b49b3eaf Change namespace to AsyncInterop\Loop 2017-01-02 20:48:48 +00:00
Bob Weinand
9a2d30c3c0 Merge pull request #127 from async-interop/spec
Change proposal to specification
2016-12-31 21:15:09 +01:00
Niklas Keller
07246e1d0d Change proposal to specification 2016-12-31 19:50:39 +01:00
Aaron Piotrowski
06ea46effb Fix oddity with PHPUnit requires annotation
Because apparently new lines matter for this…
2016-12-30 15:11:05 -06:00
Bob Weinand
b89f30a8f0 Fixed #3 (PHP_INT_MIN is PHP 7 only) 2016-12-30 21:29:21 +01:00
Bob Weinand
5ac73ba77a Merge pull request #2 from jsor/test-throw-in-callback-on-failure
Add test for throwing in callback on failure
2016-12-30 21:03:28 +01:00
Jan Sorgalla
3c263cc1e9
Add test for throwing in callback on failure 2016-12-30 20:53:47 +01:00
Aaron Piotrowski
7cd505342a Update PromiseTest
setUp() and tearDown() code moved to async-interop/promise-test
2016-12-30 13:01:09 -06:00
Aaron Piotrowski
a872f14fd4 Drop Amp\range(), add Amp\observableFromIterable() 2016-12-30 12:50:09 -06:00
Bob Weinand
d6d201a1d2 Reset to previous error handler to not interefere with other tests in the testsuite 2016-12-30 18:52:58 +01:00
Bob Weinand
cc30538bff Merge pull request #1 from jsor/php-version
Lower required PHP version to be compatible with async-interop/promise
2016-12-30 15:14:44 +01:00
Jan Sorgalla
4979bab754
Lower required PHP version to compatible with async-interop/promise 2016-12-30 14:51:23 +01:00
Bob Weinand
26a707ed94 Always put the watcher back upon re-activation 2016-12-30 00:55:06 +01:00
Aaron Piotrowski
b5d5b8dff1 Drop loop wrapper functions 2016-12-29 16:57:08 -06:00
Aaron Piotrowski
b503836e32 Do not allow failure on 7.1 2016-12-29 16:54:19 -06:00
Aaron Piotrowski
0659f6f3ee Update to loop standard v0.4 2016-12-29 16:54:10 -06:00
Aaron Piotrowski
97ac5a1b1f Update to loop standard v0.4 2016-12-29 16:36:32 -06:00
Aaron Piotrowski
5651240615 Update to promise spec v0.3
Dropped strict-types due to spec requiring weak types in callbacks.
2016-12-29 16:29:27 -06:00
Bob Weinand
3139f156c3 Require PHP 7 for weak types test 2016-12-29 22:34:30 +01:00
Aaron Piotrowski
1fe1eb1d21 Require 7 for weak types test 2016-12-29 14:59:26 -06:00
Aaron Piotrowski
b1e58862b2 Add extension required annotations on Ev and Uv loop tests 2016-12-29 14:47:06 -06:00
Aaron Piotrowski
81f6d3f94f Avoid pcntl bug with closures 2016-12-29 14:40:12 -06:00
Bob Weinand
c49fba263c Add test for weak types 2016-12-29 19:01:41 +01:00
Aaron Piotrowski
5079bb3f13 Merge branch 'uv' 2016-12-29 11:47:42 -06:00
Bob Weinand
b0a122ef29 Fixed #3 (Moved signal handling check before handler call) 2016-12-29 18:16:36 +01:00
Bob Weinand
fcba4ad0c5 Add test for weak types 2016-12-29 17:45:12 +01:00
Cees-Jan Kiewiet
0ede4e89a4 Merge pull request #123 from async-interop/weak-types
Add note about weak type requirement
2016-12-29 16:41:03 +01:00
Aaron Piotrowski
6f2a238087 Merge branch 'event-loop-v0.4' into uv 2016-12-28 23:50:30 -06:00
Aaron Piotrowski
11eb0327bf Cleanup travis build 2016-12-28 23:30:17 -06:00
Aaron Piotrowski
b535a72161 Update for loop standard changes 2016-12-28 23:11:08 -06:00
Bob Weinand
04300eba89 Remove redundant destructor 2016-12-29 03:06:53 +01:00
Bob Weinand
7e875298b8 Use getInfo() in __debugInfo() 2016-12-29 01:50:41 +01:00