gpui-async
SKILL.md
GPUI Async
This skill covers async patterns and concurrency management in GPUI.
Overview
GPUI provides async primitives for:
- Foreground tasks:
cx.spawn()for UI thread work - Background tasks:
cx.background_spawn()for CPU-intensive work - Task management:
Task<R>for cancellation and lifecycle - Async contexts:
AsyncAppandAsyncWindowContextfor async operations
Foreground Tasks
All UI rendering happens on a single foreground thread.