<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Promises on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/promises/</link><description>Recent content in Promises on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Wed, 14 Jan 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/promises/index.xml" rel="self" type="application/rss+xml"/><item><title>Asynchronous JavaScript: Promises, Async/Await, and Streams</title><link>https://ai-blog.noorshomelab.dev/js-architect-prep-2026/async-promises-await-streams/</link><pubDate>Wed, 14 Jan 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/js-architect-prep-2026/async-promises-await-streams/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Asynchronous programming is the bedrock of modern JavaScript development, enabling non-blocking operations crucial for responsive user interfaces, efficient server-side applications (Node.js), and seamless data handling. From fetching data over a network to processing large files, understanding how JavaScript manages tasks outside the main execution thread is paramount. This chapter dives deep into the core concepts, patterns, and intricacies of asynchronous JavaScript, specifically focusing on Promises, &lt;code&gt;async&lt;/code&gt;/&lt;code&gt;await&lt;/code&gt;, the Event Loop, and Streams.&lt;/p&gt;</description></item><item><title>Chapter 9: Advanced Orchestration: Promises and the `updateCallback`</title><link>https://ai-blog.noorshomelab.dev/scoped-view-transitions-2025/chapter-9-advanced-orchestration/</link><pubDate>Fri, 05 Dec 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/scoped-view-transitions-2025/chapter-9-advanced-orchestration/</guid><description>&lt;h2 id="introduction-taking-control-of-your-transitions"&gt;Introduction: Taking Control of Your Transitions&lt;/h2&gt;
&lt;p&gt;Welcome back, future animation wizard! So far, we&amp;rsquo;ve explored the magic of Scoped View Transitions, giving elements their own little stage for smooth changes. You&amp;rsquo;ve learned how to tag elements with &lt;code&gt;view-transition-name&lt;/code&gt; and trigger basic transitions. But what if you need more control? What if your DOM updates aren&amp;rsquo;t instantaneous, or you want to synchronize other actions with the transition&amp;rsquo;s lifecycle?&lt;/p&gt;
&lt;p&gt;In this chapter, we&amp;rsquo;re going to unlock the true power of orchestrating your View Transitions. We&amp;rsquo;ll dive deep into the &lt;code&gt;updateCallback&lt;/code&gt; function, a crucial part of &lt;code&gt;startViewTransition()&lt;/code&gt;, and explore how JavaScript Promises become your best friends for managing asynchronous operations within your transitions. By the end of this chapter, you&amp;rsquo;ll be able to precisely control &lt;em&gt;when&lt;/em&gt; your DOM updates happen and &lt;em&gt;when&lt;/em&gt; your animations begin and end, leading to incredibly sophisticated and robust user experiences.&lt;/p&gt;</description></item></channel></rss>