async-drop
OfficialMaster async cleanup patterns in Rust.
Authorcryfs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
AsyncDrop patterns enforce safe, asynchronous cleanup for resources in Rust, addressing the need to properly finalize resources that require async teardown, preventing leaks and ensuring deterministic shutdown.
Core Features & Use Cases
- AsyncDropGuard wraps values to require explicit asynchronous cleanup via async_drop().
- AsyncDrop trait implementations provide per-resource cleanup logic.
- Patterns for composition and ownership: delegating to member AsyncDrops, with_async_drop_2 macro, and sharing via AsyncDropArc.
- Concurrency-friendly cleanup, including parallel drops for independent members and safe transfer of guard ownership.
Quick Start
Use the AsyncDrop pattern to ensure a resource is cleaned up asynchronously by wrapping it in AsyncDropGuard and invoking async_drop() when done.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: async-drop Download link: https://github.com/cryfs/cryfs/archive/main.zip#async-drop Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.