FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [View Raw Code]   [Original HTTPS Page]

pythonnative/docs/api/suspense.md at v0.41.0 · pythonnative/pythonnative · GitHub

Repository navigation

Latest commit

 

History

History
28 lines (23 loc) · 1.01 KB

File metadata and controls

28 lines (23 loc) · 1.01 KB

Suspense

Primitives behind PythonNative's async rendering model: the [Suspend][pythonnative.suspense.Suspend] signal, the standard asyncio tasks that run async def component bodies, cached async values ([Resource][pythonnative.Resource] / [start_resource][pythonnative.start_resource]), and code splitting with [lazy][pythonnative.lazy].

The user-facing pieces are the [Suspense][pythonnative.Suspense] boundary component (documented with the other components) and the [use_resource][pythonnative.use_resource] hook (documented with the other hooks); this page covers the underlying machinery.

::: pythonnative.suspense options: show_root_heading: false show_root_toc_entry: false members_order: source filters: ["!^_"]

Next steps

  • Walk through async components, Suspense, and use_resource end-to-end: Async + data guide.
  • See how suspension threads through the render pass: Architecture.

Back | FazBrowse Home | New Git URL