1
0
mirror of https://github.com/danog/amp.git synced 2024-12-12 09:29:45 +01:00
Commit Graph

17 Commits

Author SHA1 Message Date
Niklas Keller
d89d1696a8 Add further specification for loop drivers 2016-05-23 20:20:15 +02:00
Bob Weinand
d0701c20d3 Put $delay and $interval at the first places of their respective methods
Closes #54
2016-05-22 18:07:21 +02:00
Bob Weinand
4dce408678 Fix accidental static on LoopDriver::getHandle() 2016-05-22 15:47:41 +02:00
Niklas Keller
8418c37d53 Drop feature constant, leftover from #50 2016-05-22 15:34:29 +02:00
Niklas Keller
1f526a5cf0 Drop Loop::supports
Redefine UnsupportedFeatureException to be only thrown if the system
doesn't support the feature. Drivers MUST support it if PCNTL or something
similar is available.
2016-05-21 13:38:36 +02:00
Niklas Keller
8a84f70784 Merge pull request #48 from async-interop/underlying-loop-handle
Add getLoopHandle() for accessing the underlying loop
2016-05-21 09:45:54 +02:00
Bob Weinand
a020880d53 getLoopHandle() => getHandle() on Driver only 2016-05-21 01:32:03 +02:00
Andrew Carter
23284e56f1 Changed onError() to setErrorHandler()
Previously this code allowed multiple error handlers. This change
would allow for only a single error handler that is overwritten by
future calls and can be cleared by passing a null parameter.
2016-05-20 09:31:56 +02:00
Bob Weinand
6a13263198 Merge pull request #35 from trowski/watcher-data
Add watcher data parameter
2016-05-19 17:42:54 +02:00
Aaron Piotrowski
ffde57f0d1 Make watcher ID first parameter 2016-05-19 10:30:38 -05:00
Bob Weinand
d03a2c14e6 Add getLoopHandle() for accessing the underlying loop
These resources or objects may then be attributed to a specific extension via instanceof or get_resource_type() in implementations.

Fixes #16.
2016-05-19 01:12:56 +02:00
Niklas Keller
a32c1c36d2 Shorten namespace to Interop\Async and correct PHP version requirement 2016-05-15 14:40:07 +02:00
Aaron Piotrowski
d5126870c4 Event -> Watcher
Methods return watchers for events, not events.
2016-05-14 17:19:05 -05:00
Aaron Piotrowski
5b283d69e9 Define watcher callback signatures 2016-05-14 17:14:33 -05:00
Aaron Piotrowski
38a3da4889 Add $data parameter to watchers 2016-05-14 17:13:35 -05:00
Niklas Keller
5a84c8336e Add Loop::supports to check for optional features 2016-05-13 23:41:54 +02:00
Niklas Keller
ef68e03c52 Rename EventLoop → Loop and EventLoopDriver → LoopDriver 2016-05-12 17:57:02 +02:00