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/index.rst
+4-5Lines changed: 4 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,11 @@ The only available operation is calling the previously registered
16
16
callbacks by using ``await sig.send(data)``.
17
17
18
18
The callback parameters, which should be passed in the ``.send()`` call, can be
19
-
specified for a type checker:
19
+
specified for a type checker::
20
+
21
+
signal = Signal[int, str](owner)
22
+
signal.send(42, "foo")
20
23
21
-
```python
22
-
signal = Signal[int, str](owner)
23
-
signal.send(42, "foo")
24
-
```
25
24
26
25
For concrete usage examples see the :ref:`aiohttp:aiohttp-web-signals` section of the :doc:`aiohttp:web_advanced` chapter of the :doc:`aiohttp documentation <aiohttp:index>`.
0 commit comments