Niklas Keller
50b37b23ef
Add asyncCall
2017-05-03 15:21:49 +02:00
Niklas Keller
def42c496a
Fix code style
2017-05-02 22:09:11 +02:00
Niklas Keller
5471b17a67
Fix broken test
2017-05-02 21:57:00 +02:00
Niklas Keller
8d9219bf92
Increase timer delay and defer in testMultipleWatchersOnSameDescriptor
2017-05-02 21:51:52 +02:00
Niklas Keller
e00ab0db75
Wrap execution order test in extra defer
...
This should mitigate the EventDriverTest occassionally failing.
In case this doesn't help, increase the rep1 repeat timer interval.
2017-05-02 21:42:45 +02:00
Niklas Keller
ad08ffba1d
✅ Add missing test case in ProducerTraitTest
2017-05-02 19:13:53 +02:00
Niklas Keller
1419bd6c0c
Remove unused imports
2017-05-02 19:04:25 +02:00
Niklas Keller
783fe8c4f4
✅ Add asyncCoroutine and ReactPromise tests
2017-05-02 18:59:52 +02:00
Niklas Keller
141875b133
🔥 Kill pipe and capture
...
Use Amp\call instead.
2017-05-02 18:32:59 +02:00
Niklas Keller
14cea0cbf0
✅ Added further Internal\Producer tests
2017-05-02 18:10:10 +02:00
Niklas Keller
b5770ba64a
Rename missed Pause to Delayed
2017-05-02 07:22:53 +02:00
Aaron Piotrowski
835e617054
More stream → iterator
...
Hopefully that's all of them…
2017-05-02 07:07:43 +02:00
Aaron Piotrowski
da9b724f5b
getIterator → iterate
2017-05-02 07:07:43 +02:00
Aaron Piotrowski
91c8da9fec
Replace more occurrences of stream
2017-05-02 07:07:43 +02:00
Aaron Piotrowski
8ccb0643c1
Fail tests if exception is not thrown from advance()
2017-05-02 07:07:43 +02:00
Aaron Piotrowski
9a2a4966c6
Fix code style issues
2017-05-02 07:07:20 +02:00
Aaron Piotrowski
38d53304ae
Stream → Iterator
2017-05-02 07:07:20 +02:00
Aaron Piotrowski
4992d3ebac
Update stream tests
2017-05-02 07:06:20 +02:00
Niklas Keller
1286087c06
Rename Pause to Delayed
...
Pause doesn't cover the delayed value use case.
2017-05-02 07:02:02 +02:00
Niklas Keller
17224616aa
Add more grace periods for timing dependent tests
2017-04-26 21:37:09 +02:00
Niklas Keller
37026dbaae
Put memory leak tests into a group to enable skipping
...
Also fixes the missing directory on Travis.
2017-04-26 20:27:59 +02:00
Niklas Keller
136ccc7dad
Run UV tests in a separate PHP instance
2017-04-26 20:20:08 +02:00
Aaron Piotrowski
8ca8009074
Remove note about yielding in finally
...
Yielding in finally will work as long as the generator is not force closed (for example, a yielded promise is never resolved and the coroutine object is subsequently destroyed).
2017-04-25 14:29:10 -05:00
Aaron Piotrowski
e1491b1925
Handle invalid yield like a failed promise
2017-04-24 13:08:30 -05:00
Aaron Piotrowski
34192ceca5
Drop Coroutine::dispose()
2017-04-24 11:10:05 -05:00
Niklas Keller
c3fc6659cd
Revert to assertEquals where order might be different, remove strict rule
2017-04-24 16:28:56 +02:00
Niklas Keller
79ab41e5bf
Update php-cs-fixer to version 2 and upgrade rules
...
This also fixes the code style according to the new rules.
2017-04-24 16:22:02 +02:00
Niklas Keller
0e376fbed9
Increase variation grace period in tests
2017-04-24 15:27:04 +02:00
Niklas Keller
e9d48a68d5
Rename createRunnable to asyncCoroutine and createCallable to coroutine
2017-04-24 15:27:04 +02:00
Niklas Keller
05670678e1
Fix tests regarding UnionTypeError
2017-04-24 15:27:04 +02:00
Niklas Keller
70e63a3748
Fix code style according to new rules
2017-04-24 15:27:04 +02:00
Niklas Keller
dfa40f5b00
Rename wrap to createRunnable and coroutine to createCallable
2017-04-24 15:27:04 +02:00
Niklas Keller
4577f92625
Remove unnecessary usages of Amp\wrap
2017-04-24 15:27:04 +02:00
Aaron Piotrowski
e75c62a5fd
Do not depend on watcher execution order
...
Loop driver spec says order is not guaranteed.
2017-04-21 12:18:40 -05:00
Aaron Piotrowski
6375d0881d
Use same FD for read and write
2017-04-21 10:08:58 -05:00
Aaron Piotrowski
ef51893b69
Test multiple watchers on same FD
2017-04-21 10:02:10 -05:00
Aaron Piotrowski
76e0913d9b
Fix timer test comment
...
The concept of time continues to elude me…
2017-04-20 10:00:57 -05:00
Aaron Piotrowski
4792bf52fe
Emulate "now" behavior of libuv/libev in NativeDriver and EventDriver
...
Timers created while not running when using NativeDriver and EventDriver will include the elapsed time before run() is called. This matches the behavior of EvDriver and UvDriver. Addresses #113 .
2017-04-19 17:21:23 -05:00
Bob Weinand
61b88a780e
Merge remote-tracking branch 'origin/kelunik-v2-review'
2017-04-15 00:42:07 +02:00
Aaron Piotrowski
38a6066e53
Remove Message
2017-04-14 09:23:47 -05:00
Niklas Keller
5e545301cd
Rename Listener to StreamIterator
2017-04-13 18:20:46 +02:00
Niklas Keller
3e8b37f21f
Remove Amp\Stream\interval and add delay option to fromIterable
2017-04-13 18:05:41 +02: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
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
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
ff5fef4b93
Fix UV executing multiple IO watchers in different ticks, fixes #85
2017-03-25 19:52:17 +01:00