Skip to content

docs: async-first emphasis + recommend Asyncer's asyncify for blocking calls#33

Merged
tomasanchez merged 1 commit into
mainfrom
docs/async-first
Jun 13, 2026
Merged

docs: async-first emphasis + recommend Asyncer's asyncify for blocking calls#33
tomasanchez merged 1 commit into
mainfrom
docs/async-first

Conversation

@tomasanchez

Copy link
Copy Markdown
Owner

Refines the async guidance per the standard:

  • Async-first: AGENTS.md and ADR 0017 now state that new adapters/handlers/routes/clients are async by default — reach for async first.
  • asyncify: when a dependency is unavoidably synchronous, wrap it with asyncify() from Asyncer (by FastAPI's author) — await asyncify(blocking_fn)(arg), which runs it in a worker thread (uv add asyncer) — rather than blocking the event loop. Added to ADR 0017 Agent Guidance + References and AGENTS.md.

Docs-only; bake matrix green (4 combos, 100%, incl. adr-check). asyncer is recommended on demand, not added as a default dependency (kept lean).

🤖 Generated with Claude Code

Make async the explicit first choice for new adapters/handlers/routes in AGENTS.md and ADR 0017, and recommend wrapping unavoidable blocking calls with asyncify() from tiangolo's Asyncer (await asyncify(fn)(arg); uv add asyncer) instead of blocking the event loop.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@tomasanchez tomasanchez enabled auto-merge June 13, 2026 00:11
@tomasanchez tomasanchez merged commit 7d3f4aa into main Jun 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant