We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 79a4cb4 commit 1023ac7Copy full SHA for 1023ac7
1 file changed
docs/invoke.md
@@ -282,12 +282,12 @@ This is ideal for non-blocking async I/O:
282
```py
283
>>> import asyncio
284
285
->>> async def fetch_data():
+>>> async def async_fetch():
286
... await asyncio.sleep(0.01) # simulates async I/O
287
... return {"status": "ok"}
288
289
>>> class AsyncLoader(StateChart):
290
-... loading = State(initial=True, invoke=fetch_data)
+... loading = State(initial=True, invoke=async_fetch)
291
... ready = State(final=True)
292
... done_invoke_loading = loading.to(ready)
293
...
0 commit comments