Toolverse
All skills

rust-async-patterns

by wshobson

Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.

Installation

Pick a client and clone the repository into its skills directory.

Installation

Quick info

Author
wshobson
Category
Backend
Views
25

About this skill

Master Rust async programming with Tokio, async traits, error handling, and concurrent patterns. Use when building async Rust applications, implementing concurrent systems, or debugging async code.

How to use

  1. Dodaj umiejętność do swojego projektu Rust, upewniając się, że masz zainstalowany Tokio w wersji 1.0 lub nowszej oraz biblioteki futures, async-trait i anyhow w pliku Cargo.toml.

  2. Zainicjuj runtime Tokio w funkcji main, używając atrybutu #[tokio::main], aby włączyć obsługę asynchroniczną w całej aplikacji.

  3. Definiuj funkcje asynchroniczne za pomocą słowa kluczowego async fn i używaj await do wstrzymywania wykonania do czasu ukończenia operacji asynchronicznych, takich jak żądania sieciowe lub operacje I/O.

  4. Twórz zadania współbieżne za pomocą tokio::spawn, aby uruchamiać wiele operacji asynchronicznych równolegle i zarządzać ich wykonaniem.

  5. Obsługuj błędy w kodzie asynchronicznym, zwracając Result z funkcji async i używając operatora ? do propagacji błędów, wspieranego przez bibliotekę anyhow.

  6. Debuguj problemy asynchroniczne, włączając tracing i tracing-subscriber do logowania zdarzeń i śledzenia przepływu wykonania w aplikacji.

Related skills

clickup

by civitai

Interact with ClickUp tasks and documents - get task details, view comments, create and manage tasks, create and edit docs. Use when working with ClickUp task/doc URLs or IDs.

Backend
2483

sql-optimization-patterns

by wshobson

Master SQL query optimization, indexing strategies, and EXPLAIN analysis to dramatically improve database performance and eliminate slow queries. Use when debugging slow queries, designing database schemas, or optimizing application performance.

Backend
40163

api-design-principles

by wshobson

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

Backend
50146

dotnet-backend

by anton-abyzov

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET

Backend
92296

using-superpowers

by obra

Use when starting any conversation - establishes mandatory workflows for finding and using skills, including using Skill tool before announcing usage, following brainstorming before coding, and creating TodoWrite todos for checklists

Backend
65167

postgresql-psql

by timelessco

Comprehensive guide for PostgreSQL psql - the interactive terminal client for PostgreSQL. Use when connecting to PostgreSQL databases, executing queries, managing databases/tables, configuring connection options, formatting output, writing scripts, managing transactions, and

Backend
34173