Top "Event-loop" questions

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

Why is setTimeout(fn, 0) sometimes useful?

I've recently run into a rather nasty bug, wherein the code was loading a <select> dynamically via JavaScript. …

javascript dom event-loop
Tkinter: How to use threads to preventing main event loop from "freezing"

I have a small GUI test with a "Start" button and a Progress bar. The desired behavior is: Click Start …

python multithreading tkinter progress-bar event-loop
Understanding the Event Loop

I am thinking about it and this is what I came up with: Let's see this code below: console.clear(); …

javascript multithreading node.js asynchronous event-loop
Difference between microtask and macrotask within an event loop context

I've just finished reading the Promises/A+ specification and stumbled upon the terms microtask and macrotask: see http://promisesaplus.com/#…

javascript node.js promise event-loop
How would you implement a basic event-loop?

If you have worked with gui toolkits, you know that there is a event-loop/main-loop that should be executed after …

c++ python blocking event-loop
Nodejs Event Loop

Are there internally two event loops in nodejs architecture? libev/libuv v8 javascript event loop On an I/O request …

javascript node.js event-loop libev
Eclipse Unhandled event loop exception, no more handles Windows 7

My Eclipse is used to develop Android Apps. It worked fine until one day, a Unhandled event loop exception is …

eclipse debugging exception handles event-loop
What exactly is a Node.js event loop tick?

I've been getting more into the internals of the Node.js architecture, and a term I see coming up a …

node.js message-queue event-loop
Python Windows `msvcrt.getch()` only detects every 3rd keypress?

My code is below: import msvcrt while True: if msvcrt.getch() == 'q': print "Q was pressed" elif msvcrt.getch() == 'x': …

python python-2.7 msvcrt event-loop getch
Event loops and signal-slot processing when using multithreading in Qt

I've been having some problems with using QThreads which made me explore different combinations before I've found the right one. …

c++ multithreading qt event-loop signals-slots