You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/async.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,23 @@ Engines are internal and are activated automatically by inspecting the registere
47
47
48
48
```
49
49
50
+
Outer scope
51
+
: The context in which the state machine **instance** is created.
52
+
53
+
Async callbacks?
54
+
: Indicates whether the state machine has declared asynchronous callbacks or conditions.
55
+
56
+
Engine
57
+
: The engine that will be utilized.
58
+
59
+
Creates internal loop
60
+
: Specifies whether the state machine initiates a new event loop if no [asyncio loop is running](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_running_loop).
61
+
62
+
Reuses external loop
63
+
: Indicates whether the state machine reuses an existing [asyncio loop](https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_running_loop) if one is already running.
64
+
65
+
66
+
50
67
```{note}
51
68
All handlers will run on the same thread they are called. Therefore, mixing synchronous and asynchronous code is not recommended unless you are confident in your implementation.
0 commit comments