Top "Event-loop" questions

Event loop refers to an infinite cycle of actions which is used for processing data based on callbacks and messages.

Run NodeJS event loop / wait for child process to finish

I first tried a general description of the problem, then some more detail why the usual approaches don't work. If …

node.js event-loop
Wait for an async function to return in Node.js

Supposed, I have a async function in Node.js, basically something such as: var addAsync = function (first, second, callback) { setTimeout(…

javascript node.js asynchronous synchronous event-loop
How to integrate Boost.Asio main loop in GUI framework like Qt4 or GTK

Is there any way to integrate Boost.Asio with Qt4 (preferred) or GTK main loop? GTK provides poll(2) like API …

qt4 gtk boost-asio event-loop
How to detect and measure event loop blocking in node.js?

I'd like to monitor how long each run of the event loop in node.js takes. However I'm uncertain about …

node.js npm blocking event-loop
What is an event loop in Qt?

I have understood the following regarding QApplication's exec function: QApplication exec starts the main event loop. It launches the GUI. …

c++ qt event-loop qapplication
asyncio: Is it possible to cancel a future been run by an Executor?

I would like to start a blocking function in an Executor using the asyncio call loop.run_in_executor and …

python executor event-loop python-asyncio
What is the relationship between event loop and Promise

I am curious about the relationship between Event Loop and Promise. The demo exposes the question. I expected the p1 …

javascript promise theory event-loop
Qt event loop and unit testing?

I'we started experimenting with unit testing in Qt and would like to hear comments on a scenario that involves unit …

qt unit-testing event-handling qt4 event-loop
How does Python's Twisted Reactor work?

Recently, I've been diving into the Twisted docs. From what I gathered, the basis of Twisted's functionality is the result …

python twisted event-loop reactor
Grab user input asynchronously and pass to an Event loop in python

I am building a single player MUD, which is basically a text-based combat game. It is not networked. I don't …

python input event-loop mud