Posts with #Eventloop

#Eventloop

Public posts on X that use #Eventloop.

Related hashtags

  1. Tharun goud@tharungoud1306
    JS Event Loop decoded: Call Stack runs code ↓ Web APIs handle async (setTimeout, fetch) ↓ Callback/Microtask Queue ↓ Event Loop moves ready callbacks to stack await pauses ONLY the async function — JS keeps running other work. #JavaScript #EventLoop #WebDev
    0001
  2. Tharun goud@tharungoud1306
    JS Event Loop: Call stack → sync code Async (fetch/setTimeout) → queues Microtasks (promises) first, then macrotasks. await pauses only that function. JS keeps going. #JavaScript #EventLoop
    000
  3. Tharun goud@tharungoud1306
    JS Event Loop: single-threaded but handles async via queues. Stack empty → drain microtasks (Promises) → next macrotask (setTimeout). Promises beat timeouts. Event loop = only runs when stack is clear. #JavaScript #EventLoop
    0011
  4. Tharun goud@tharungoud1306
    JS Event Loop: Stack runs → empties → drain ALL microtasks (promises) → then ONE macrotask (setTimeout) → repeat. Promises beat setTimeout(0) because microtasks have priority. JS is single-threaded. Event loop is the traffic cop. #JavaScript #EventLoop
    000
  5. Tharun goud@tharungoud1306
    Understanding the JavaScript Event Loop: 1. Finish the call stack 2. Drain ALL microtasks (Promises, queueMicrotask) 3. Take the next macrotask (setTimeout, events) 4. Repeat That's why Promise.then() always runs before setTimeout(0)! #JavaScript #EventLoop #WebDev
    0001
  6. Tharun goud@tharungoud1306
    JS Event Loop mental model: Stack empties → drain ALL microtasks → run 1 macrotask → repeat. Why your UI stays smooth with async code. #JavaScript #EventLoop
    0001
  7. Priya Yadav@PriyaYa99786448
    #Day31 : Event Loop JavaScript is single-threaded — it runs one task at a time. Web APIs handle async tasks like timers or fetch. The Event Loop moves completed tasks back to JS. JS never waits — it just keeps executing! #JavaScript #EventLoop #AsyncJS #WebDev
    Download
    1117291
  8. Tharun goud@tharungoud1306
    JS Event Loop: Microtasks (Promises) always run before macrotasks (timers). console.log(1) setTimeout(()=>console.log(2),0) Promise.resolve().then(()=>console.log(3)) console.log(4) → 1 4 3 2 await only pauses the current function. #JavaScript #EventLoop
    0001
  9. Tharun goud@tharungoud1306
    JS Event Loop mental model: Call stack = running code. Queues = waiting work (promises, timers, I/O). Event loop moves work from queues to the stack only when the stack is empty. await pauses that function, not the thread. #JavaScript #EventLoop
    000
  10. Eventloop@eventloopmx
    ¡Y así como si nada, ya pasó un mes! Les esperamos en nuestro siguiente #Eventloop del mes de Agosto. Si quieres asistir y aprender acerca de la creación de un sistema de diseño o un metaverso con Three.js ya puedes regístrate aquí:
    1413
  11. Eventloop@eventloopmx
    ¡Y así de rápido ya es Septiembre y con él ha llegado nuestro evento mensual de la comunidad #Eventloop! Los invitamos a que asistan este miércoles 4 de Septiembre en las oficinas de @platzi en CDMX para platicar y aprender con todos nosotros.
    0826
  12. Show more posts