Aaron Piotrowski
ca827319ec
Standard updates and more
...
Update for changes in async-interop/event-loop.
Do not invalidate delay and defer on disable.
Better watcher ID generation.
Throw if enabling invalid watcher.
2016-05-27 10:16:36 -05:00
Bob Weinand
de3c259557
Turns out it is better to not fail for invalid watcher ids
2016-05-27 15:20:39 +02:00
Bob Weinand
104b761e59
Revert "Merge pull request #63 from async-interop/throw-on-invalid-watcher"
...
This reverts commit 5bd7794dfa
, reversing
changes made to 64494951ff
.
Revert too quick merge (sorry) as per #58
2016-05-27 14:57:11 +02:00
Bob Weinand
e74f09a741
Fix incomplete/skipped marking
2016-05-27 04:17:30 +02:00
Bob Weinand
e2f11010c0
Fix loop->stop() test and incomplete/skipped marking
2016-05-27 04:08:34 +02:00
Bob Weinand
572c99bb85
Initial commit
2016-05-27 03:25:55 +02:00
Bob Weinand
5bd7794dfa
Merge pull request #63 from async-interop/throw-on-invalid-watcher
...
Throw on invalid watcher identifier
2016-05-27 03:24:00 +02:00
Aaron Piotrowski
99eecc1a3f
Refactor
2016-05-26 18:20:05 -05:00
Aaron Piotrowski
3edab2dfd3
Put Loop::get() back
...
Why do I keep thinking null uses the current loop... bah
2016-05-26 18:15:33 -05:00
Bob Weinand
b197b2c07d
Put Loop::execute() $callback into Driver::defer()
...
This also ensures that potential throwing in the callback will be handled inside a potential error handler instead of immediately falling through.
2016-05-26 23:45:27 +02:00
Aaron Piotrowski
b8f0d521ba
Add note that disable must not invalidate
2016-05-26 12:36:56 -05:00
Aaron Piotrowski
b7ed0afd02
Add "or cancelled" to throw condition
2016-05-26 11:10:44 -05:00
Aaron Piotrowski
61c13e209f
Extend LogicException instead
2016-05-26 11:07:42 -05:00
Aaron Piotrowski
7c34146ac8
Add InvalidWatcherException
2016-05-26 10:43:03 -05:00
Aaron Piotrowski
64494951ff
use -> namespace
2016-05-26 10:40:50 -05:00
Bob Weinand
6c8d31bc8a
Merge pull request #62 from async-interop/cleanup-namespace
...
Cleanup namespace
2016-05-26 17:27:23 +02:00
Aaron Piotrowski
7a2c5cdc88
Cleanup namespace
2016-05-26 10:05:17 -05:00
Aaron Piotrowski
12102e773a
Merge pull request #59 from async-interop/fix-running
...
Fix running flag, factory reset, etc.
2016-05-26 09:44:41 -05:00
Aaron Piotrowski
dd70850682
Remove driver argument
2016-05-26 00:09:50 -05:00
Aaron Piotrowski
ae225835f2
Drop exception namespace
2016-05-25 23:24:06 -05:00
Aaron Piotrowski
a68bde6449
Eliminate watcher constructors
2016-05-25 23:21:49 -05:00
Niklas Keller
52a13b69dd
Fix se stupid composer
2016-05-25 13:55:36 +02:00
Niklas Keller
47edee535d
Forbid new factories while running, add scope test
2016-05-25 13:55:36 +02:00
Niklas Keller
476bb2305b
Fix loop running flag to support nesting properly
2016-05-25 13:55:36 +02:00
Bob Weinand
5859044b82
Merge pull request #53 from async-interop/spec
...
Add further specification for loop drivers
2016-05-25 01:55:34 +02:00
Aaron Piotrowski
b436a56869
Remove unused property
2016-05-24 12:09:52 -05:00
Aaron Piotrowski
a9362780ed
Initial commit
2016-05-24 11:47:14 -05:00
Aaron Piotrowski
ccec7acc94
Remove Exception namespace
2016-05-24 10:39:19 -05:00
Aaron Piotrowski
5cd2c33d5c
Fix defer queue invocation
2016-05-24 09:36:16 -05:00
Aaron Piotrowski
6d263ffb84
Drop Awaitable from namespace
2016-05-23 22:48:28 -05:00
Aaron Piotrowski
8b42994ec9
Fix exception creation
2016-05-23 21:36:29 -05:00
Aaron Piotrowski
13e807d564
Throw on repeated resolution
2016-05-23 21:32:41 -05:00
Andrew Carter
6c531f59d7
Merge pull request #55 from async-interop/info
...
Add Loop::info
2016-05-23 23:10:35 +01:00
Bob Weinand
9d990a24ca
Loop::info() must be static
2016-05-23 23:51:06 +02:00
Niklas Keller
f94864875d
Add notes about timers
2016-05-23 20:29:10 +02:00
Cees-Jan Kiewiet
c98af47036
s/non/none
2016-05-23 20:20:15 +02:00
Niklas Keller
09d5283f08
Add note that Registry should not be used by drivers
2016-05-23 20:20:15 +02:00
Niklas Keller
d89d1696a8
Add further specification for loop drivers
2016-05-23 20:20:15 +02:00
Bob Weinand
ac116c93b8
Fix missing return inside Loop::info()
2016-05-23 19:06:07 +02:00
Niklas Keller
706bdfa632
Move from keep_alive to watchers array
2016-05-23 19:06:07 +02:00
Niklas Keller
ae36a2011d
Add Loop::info, resolves #44
2016-05-23 19:06:07 +02:00
Aaron Piotrowski
6fc6ad1ab5
Throw instead of returning Failure object
2016-05-23 10:19:48 -05:00
Aaron Piotrowski
28577cf6e6
Add Pause; update for timer watcher changes in loop
2016-05-23 00:44:35 -05:00
Aaron Piotrowski
27a4569b8b
Improve defer queue invocation
2016-05-23 00:37:56 -05:00
Aaron Piotrowski
e1a2e99ca8
Avoid namespace lookup on built-in functions
2016-05-22 23:08:31 -05:00
Aaron Piotrowski
55e0971be1
Update for changes in async-interop
...
Remove use of Registry; switch Yoda conditionals
2016-05-22 22:59:09 -05:00
Aaron Piotrowski
378990fe86
Use $exception instead of passing as callback data
...
Less code this way
2016-05-22 13:43:37 -05:00
Aaron Piotrowski
918e792093
Fix LazyAwaitable
2016-05-22 13:42:38 -05:00
Aaron Piotrowski
b572f9be40
Rename and move Promise
2016-05-22 13:26:53 -05:00
Andrew Carter
8feb808fe8
Merge pull request #57 from async-interop/consistent-repeat-delay-param-order
...
Put $delay and $interval at the first places of their respective methods
2016-05-22 17:42:51 +01:00