<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tokio on AI VOID</title><link>https://ai-blog.noorshomelab.dev/tags/tokio/</link><description>Recent content in Tokio on AI VOID</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 20 Mar 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://ai-blog.noorshomelab.dev/tags/tokio/index.xml" rel="self" type="application/rss+xml"/><item><title>Chapter 9: Asynchronous Operations and Concurrency</title><link>https://ai-blog.noorshomelab.dev/ratatui-mastery-guide-2026/09-async-concurrency/</link><pubDate>Tue, 17 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/ratatui-mastery-guide-2026/09-async-concurrency/</guid><description>&lt;h1 id="chapter-9-asynchronous-operations-and-concurrency"&gt;Chapter 9: Asynchronous Operations and Concurrency&lt;/h1&gt;
&lt;p&gt;Welcome back, intrepid terminal artisan! In our previous chapters, we&amp;rsquo;ve built a solid foundation for crafting beautiful and interactive Terminal User Interfaces (TUIs) with Ratatui. We&amp;rsquo;ve learned about rendering, managing state, and handling basic user input. But what happens when your TUI needs to do more than just respond to keystrokes? What if it needs to fetch data from a network, process a large file, or run a long-computation task without freezing the entire interface?&lt;/p&gt;</description></item><item><title>Advanced Topics: Concurrency and Asynchronous Programming</title><link>https://ai-blog.noorshomelab.dev/rust-guide/advanced-concurrency-async/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-guide/advanced-concurrency-async/</guid><description>&lt;h1 id="advanced-topics-concurrency-and-asynchronous-programming"&gt;Advanced Topics: Concurrency and Asynchronous Programming&lt;/h1&gt;
&lt;p&gt;Concurrency (doing multiple things at the same time) and asynchronous programming (doing multiple things in an overlapping manner, without necessarily at the exact same time) are critical for building high-performance and responsive applications. Rust tackles these complex domains with a unique &amp;ldquo;fearless concurrency&amp;rdquo; model, leveraging its ownership and type system to prevent common concurrency bugs like data races at compile time.&lt;/p&gt;
&lt;p&gt;This chapter introduces you to Rust&amp;rsquo;s concurrency primitives and then dives into the modern asynchronous programming landscape with the &lt;code&gt;async&lt;/code&gt;/&lt;code&gt;await&lt;/code&gt; syntax and the popular &lt;code&gt;Tokio&lt;/code&gt; runtime.&lt;/p&gt;</description></item><item><title>Chapter 10: Concurrency and Asynchronous Programming in Modern Rust</title><link>https://ai-blog.noorshomelab.dev/rust-mastery-2026/concurrency-async-rust/</link><pubDate>Fri, 20 Mar 2026 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-mastery-2026/concurrency-async-rust/</guid><description>&lt;h2 id="chapter-10-concurrency-and-asynchronous-programming-in-modern-rust"&gt;Chapter 10: Concurrency and Asynchronous Programming in Modern Rust&lt;/h2&gt;
&lt;p&gt;Welcome to Chapter 10! You&amp;rsquo;ve come a long way, mastering Rust&amp;rsquo;s unique ownership system, robust error handling, and powerful type system. Now, it&amp;rsquo;s time to elevate your Rust skills to build truly high-performance, responsive applications: by diving into the world of concurrency and asynchronous programming.&lt;/p&gt;
&lt;p&gt;In modern software development, applications often need to do many things at once – handle multiple user requests, process data in the background, or communicate with various network services without freezing up. This is where concurrency and asynchronicity shine. Rust provides powerful, safe tools to tackle these challenges, offering performance comparable to C++ while maintaining its legendary memory safety guarantees. This chapter will guide you through Rust&amp;rsquo;s approaches to managing multiple operations simultaneously, ensuring your applications are fast, efficient, and robust.&lt;/p&gt;</description></item><item><title>Guided Project 2: Simple HTTP Server with Axum</title><link>https://ai-blog.noorshomelab.dev/rust-guide/project-http-server-axum/</link><pubDate>Sat, 25 Oct 2025 00:00:00 +0000</pubDate><guid>https://ai-blog.noorshomelab.dev/rust-guide/project-http-server-axum/</guid><description>&lt;h1 id="guided-project-2-simple-http-server-with-axum"&gt;Guided Project 2: Simple HTTP Server with Axum&lt;/h1&gt;
&lt;p&gt;In this project, you&amp;rsquo;ll build a simple web server using &lt;code&gt;Axum&lt;/code&gt;, a popular web framework built on top of &lt;code&gt;Tokio&lt;/code&gt; and &lt;code&gt;hyper&lt;/code&gt;. This project will demonstrate:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Asynchronous programming (&lt;code&gt;async&lt;/code&gt;/&lt;code&gt;await&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;HTTP request and response handling.&lt;/li&gt;
&lt;li&gt;Routing.&lt;/li&gt;
&lt;li&gt;State management in web applications.&lt;/li&gt;
&lt;li&gt;Working with JSON data in web APIs.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Our server will have two endpoints:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;GET /&lt;/code&gt;: A simple &amp;ldquo;Hello, World!&amp;rdquo; greeting.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;POST /echo&lt;/code&gt;: Echoes back the JSON body it receives.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;GET /count&lt;/code&gt;: Returns the current value of a shared counter.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;POST /increment&lt;/code&gt;: Increments the shared counter.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="project-setup"&gt;Project Setup&lt;/h2&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Create a new binary project:&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>