Niklas Keller
|
a954f73d8e
|
Update namespacing to be compatible with what's actually used
|
2017-03-18 21:52:23 +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
|
73149b933f
|
Ignore DriverFactory for code coverage
|
2017-03-14 22:33: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
|
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 |
|
Niklas Keller
|
20acaf123e
|
Remove unsused code from InvalidWatcherException, add handle tests for drivers
|
2017-03-13 13:56:46 +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 |
|
Aaron Piotrowski
|
8b7fb9ece3
|
Merge pull request #72 from amphp/issue-68
Implement yielding arrays as implicit all operator
|
2017-03-12 22:45:31 -05:00 |
|
Niklas Keller
|
77bd05b807
|
Fix tests and Producer React adaption
|
2017-03-12 22:09:19 +01:00 |
|
Niklas Keller
|
0006c6cb56
|
Fix async-interop docblock leftover
|
2017-03-12 21:39:17 +01:00 |
|
Niklas Keller
|
e8ea4e2ba9
|
Implement yielding arrays as implicit all operator, fixes #68
|
2017-03-12 19:42:25 +01:00 |
|
Aaron Piotrowski
|
2cc4cf9d0b
|
Fix use statement order
|
2017-03-12 12:23:48 -05:00 |
|
Aaron Piotrowski
|
f040e8801e
|
Fast return on void watcher callback
|
2017-03-12 12:23:27 -05:00 |
|
Aaron Piotrowski
|
cd4328ab48
|
Merge branch 'react-compatibility'
|
2017-03-12 11:38:48 -05:00 |
|
Pieter Hordijk
|
2db7bed1b6
|
Fixed typos an promise -> a promise
|
2017-03-12 17:36:07 +01:00 |
|
Niklas Keller
|
d748855a51
|
Fix some risky tests
|
2017-03-12 17:33:46 +01:00 |
|
Niklas Keller
|
f5f9410ec0
|
Rename Factory to DriverFactory, rename supported to isSupported
|
2017-03-12 11:25:21 +01:00 |
|
Niklas Keller
|
766b3224d1
|
Rename drivers to have a Driver instead of Loop suffix
|
2017-03-12 11:21:44 +01:00 |
|
Aaron Piotrowski
|
a98fe5cdf6
|
Rethrow React promise rejections
Adapt React promises returned from watcher callbacks to promises so that rethrow is called on them.
|
2017-03-11 09:17:55 -06:00 |
|
Aaron Piotrowski
|
7ad10f5d7d
|
Add support for React promises
|
2017-03-11 09:17:43 -06:00 |
|
Aaron Piotrowski
|
7ebe70e0ae
|
Fix docblock param formatting
Callable prototypes make alignment a mess… maybe something better can be done.
|
2017-03-10 23:08:40 -06:00 |
|
Aaron Piotrowski
|
2a9d7cb97b
|
Remove unnecessary parameter
|
2017-03-10 22:59:11 -06:00 |
|
Aaron Piotrowski
|
85de9f1f1e
|
Remove missed wrap call
|
2017-03-10 16:23:29 -06:00 |
|
Aaron Piotrowski
|
1fea860a05
|
Run watcher callbacks as coroutines within drivers
|
2017-03-10 16:03:41 -06:00 |
|
Aaron Piotrowski
|
ca30af4d22
|
More type declarations in loop component
|
2017-03-10 15:46:12 -06:00 |
|
Aaron Piotrowski
|
1929715b97
|
Remove driver nullability
|
2017-03-10 15:34:52 -06:00 |
|
Aaron Piotrowski
|
754a29e86c
|
Remove promise error handler
Exceptions thrown from when callbacks are now forwarded directly to the loop error handler.
|
2017-03-10 15:32:58 -06:00 |
|
Niklas Keller
|
be34c49a2d
|
Fixup all remaining issues, tests pass locally
|
2017-03-10 22:20:28 +01:00 |
|
Niklas Keller
|
dd8993b98e
|
Fix AsyncInterop → Amp in ErrorHandler
|
2017-03-10 22:09:49 +01:00 |
|
Niklas Keller
|
0be9ae9ade
|
Switch from AsyncInterop\Promise to Amp\Promise
|
2017-03-10 21:58:46 +01:00 |
|
Niklas Keller
|
e64bbfb9f5
|
Add Loop::set, auto-wrapping, fixup things
|
2017-03-10 21:31:57 +01:00 |
|
Niklas Keller
|
21561661a2
|
Fixup after repository merge
|
2017-03-10 19:19:32 +01:00 |
|
Niklas Keller
|
f4f9008ca0
|
Merge amphp/amp repository into amphp/amp
|
2017-03-10 18:26:17 +01:00 |
|
Aaron Piotrowski
|
72378e2b82
|
Add Amp\call()
|
2017-02-22 15:52:30 -06:00 |
|
Aaron Piotrowski
|
bb51720818
|
Always use persistent flag for timer
cancel() is called when delay timers are executed anyway, so it doesn't matter what the flags are for the event.
|
2017-02-16 23:39:11 -06:00 |
|
Aaron Piotrowski
|
9073f6c999
|
Docblock cleanup
|
2017-02-16 22:36:32 -06:00 |
|
Aaron Piotrowski
|
d7e8a9de84
|
Calling stop() in nested loop should not stop outer loop
|
2017-02-16 22:20:10 -06:00 |
|
Aaron Piotrowski
|
b72e504eab
|
Ensure correct argument order in multi-argument lift
|
2017-02-09 22:34:24 -06:00 |
|
Aaron Piotrowski
|
3861c6b5da
|
Simpler each and filter implementation
|
2017-02-09 22:17:45 -06:00 |
|