*/
bool loop();
+ /**
+ * Wait for some events to become active, run them, then return.
+ *
+ * This is useful for callers that want to run the loop manually.
+ *
+ * Returns the same result as loop().
+ */
+ bool loopOnce();
+
/**
* Runs the event loop.
*
typedef LoopCallback::List LoopCallbackList;
class FunctionRunner;
+ bool loopBody(bool once = false);
+
// executes any callbacks queued by runInLoop(); returns false if none found
bool runLoopCallbacks(bool setContext = true);