Skip to main content
Back to registry

async-io-model

tursodatabase/turso

Turso uses cooperative yielding with explicit state machines instead of Rust async/await.

Installs348
Install command
npx skills add https://github.com/tursodatabase/turso --skill async-io-model
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykPASS
About this skill
Turso uses cooperative yielding with explicit state machines instead of Rust async/await. Functions returning IOResult must be called repeatedly until Done . A Completion tracks a single I/O operation: To wait for multiple I/O operations, use CompletionGroup : CompletionGroup features: Unwraps IOResult , propagates IO variant up the call stack: Yields a single completion: Operations that may yield use explicit state enums: The function loops, matching on state and transitioning: State mutations before yield points cause bugs on re-entry. If something_that_might_yield() returns IO , caller waits for completion, then calls bad_example() again. counter gets incremented twice (or more). Encode progress in state variants: Key files: Re-entrancy bugs often only manifest under specific IO timing. Use: - Aggregates multiple completions into one - Calls callback when all complete (or any errors) - Can nest groups (add a group's completion to another group) - Cancellable via group.cancel() - core/types.rs - IOResult , IOCompletions , return_if_io! , return_and_restore_if_io! - core/io/completions.rs - Completion , CompletionGroup - core/util.rs - io_yield_one! macro - core/state_machine.rs - Generic StateMachine wrapper - core/storage/btree.rs - Many state machine examples - core/storage/pager.rs - CompletionGroup usage examples - Deterministic simulation ( testing/simulator/ ) -...

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does async-io-model do?

Turso uses cooperative yielding with explicit state machines instead of Rust async/await.

Is async-io-model good?

async-io-model does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does async-io-model work with?

async-io-model currently lists compatibility with codex, gemini-cli, opencode, cursor, github-copilot, claude-code.

What are alternatives to async-io-model?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install async-io-model?

npx skills add https://github.com/tursodatabase/turso --skill async-io-model

Related skills

More from tursodatabase/turso

Related skills

Alternatives in Software Engineering