Commit 2225d331 authored by dtmuller's avatar dtmuller

Use isRunnable for better readability

parent 200bd824
...@@ -253,7 +253,7 @@ void EventLoop::run(uint maxTurnCount) { ...@@ -253,7 +253,7 @@ void EventLoop::run(uint maxTurnCount) {
} }
} }
setRunnable(head != nullptr); setRunnable(isRunnable());
} }
bool EventLoop::turn() { bool EventLoop::turn() {
...@@ -333,7 +333,7 @@ void waitImpl(Own<_::PromiseNode>&& node, _::ExceptionOrValue& result, WaitScope ...@@ -333,7 +333,7 @@ void waitImpl(Own<_::PromiseNode>&& node, _::ExceptionOrValue& result, WaitScope
} }
} }
loop.setRunnable(loop.head != nullptr); loop.setRunnable(loop.isRunnable());
node->get(result); node->get(result);
KJ_IF_MAYBE(exception, kj::runCatchingExceptions([&]() { KJ_IF_MAYBE(exception, kj::runCatchingExceptions([&]() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment