<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Future on wid's blog</title><link>https://wid-blog.github.io/tags/future/</link><description>Recent content in Future on wid's blog</description><generator>Hugo</generator><language>ko</language><lastBuildDate>Tue, 17 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://wid-blog.github.io/tags/future/index.xml" rel="self" type="application/rss+xml"/><item><title>Rust async 와 tokio 스케줄러</title><link>https://wid-blog.github.io/posts/tech/language/rust-async/</link><pubDate>Tue, 17 Nov 2026 00:00:00 +0000</pubDate><guid>https://wid-blog.github.io/posts/tech/language/rust-async/</guid><description>async fn 을 호출하면 본문은 실행되지 않고 Future 값만 생긴다. Future 는 poll 될 때마다 다음 await 까지 진행하는 상태 머신이고, 진행할 수 없으면 Waker 를 맡기고 Pending 으로 돌아온다. 첫 poll 뒤에는 상태가 자기 주소에 의존하므로 Pin 으로 옮기지 못하게 한다. worker 2개인 tokio 런타임에서 std::thread::sleep(100ms) 작업 4개가 두 worker 를 점유하자 10ms 마다 깨어나는 태스크가 약 200ms 늦었고, 같은 작업을 spawn_blocking 으로 옮기자 지연이 blocking 이 없을 때와 같은 수 ms 로 돌아왔다. Rust 공부 시리즈의 열 번째이자 마지막 글.</description></item></channel></rss>