tokio

Featured

You are an expert in Tokio, the asynchronous runtime for Rust that powers most of the Rust async ecosystem. You help developers build high-performance network applications, concurrent services, and I/O-bound systems using Tokio's task scheduler, async I/O primitives, channels, timers, and synchronization utilities — handling millions of concurrent connections with minimal memory overhead.

Code & Development 58 stars 6 forks Updated 4 days ago Apache-2.0

Install

View on GitHub

Quality Score: 90/100

Stars 20%
59
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Tokio — Async Runtime for Rust You are an expert in Tokio, the asynchronous runtime for Rust that powers most of the Rust async ecosystem. You help developers build high-performance network applications, concurrent services, and I/O-bound systems using Tokio's task scheduler, async I/O primitives, channels, timers, and synchronization utilities — handling millions of concurrent connections with minimal memory overhead. ## Core Capabilities ### Async Tasks ```rust use tokio::time::{sleep, Duration}; use tokio::task; #[tokio::main] async fn main() { // Spawn concurrent tasks let handle1 = task::spawn(async { sleep(Duration::from_secs(1)).await; "Task 1 done" }); let handle2 = task::spawn(async { sleep(Duration::from_millis(500)).await; "Task 2 done" }); // Await both let (r1, r2) = tokio::join!(handle1, handle2); println!("{}, {}", r1.unwrap(), r2.unwrap()); // Select first to complete tokio::select! { val = async { sleep(Duration::from_secs(1)).await; "slow" } => { println!("Got: {val}"); } val = async { sleep(Duration::from_millis(100)).await; "fast" } => { println!("Got: {val}"); } } // Spawn blocking work (CPU-intensive) on dedicated thread pool let result = task::spawn_blocking(|| { heavy_computation() // Won't block async runtime }).await.unwrap(); } ``` ### Channels ```rust use tokio::sync::{mp...

Details

Author
TerminalSkills
Repository
TerminalSkills/skills
Created
3 months ago
Last Updated
4 days ago
Language
Shell
License
Apache-2.0

Related Skills

Code & Development Featured

code-reviewer

Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quality. Complements specialized skills (security-reviewer, test-master) by providing broad-scope review across correctness, performance, maintainability, and test coverage in a single pass.

9,342 Updated 5 days ago
Jeffallan
Code & Development Featured

security-reviewer

Identifies security vulnerabilities, generates structured audit reports with severity ratings, and provides actionable remediation guidance. Use when conducting security audits, reviewing code for vulnerabilities, or analyzing infrastructure security. Invoke for SAST scans, penetration testing, DevSecOps practices, cloud security reviews, dependency audits, secrets scanning, or compliance checks. Produces vulnerability reports, prioritized recommendations, and compliance checklists.

9,342 Updated 5 days ago
Jeffallan
Code & Development Featured

parallel-investigation

Coordinates parallel investigation threads to simultaneously explore multiple hypotheses or root causes across different system areas. Use when debugging production incidents, slow API performance, multi-system integration failures, or complex bugs where the root cause is unclear and multiple plausible theories exist; when serial troubleshooting is too slow; or when multiple investigators can divide root-cause analysis work. Provides structured phases for problem decomposition, thread assignment, sync points with Continue/Pivot/Converge decisions, and final report synthesis.

745 Updated 1 months ago
rohitg00