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 6571107 commit 22d76a8Copy full SHA for 22d76a8
RELEASE_NOTES.md
@@ -10,7 +10,15 @@
10
11
## New Features
12
13
-<!-- Here goes the main new features and examples or instructions on how to use them -->
+- There is a new `Receiver.triggered` method that can be used instead of `selected_from`:
14
+
15
+ ```python
16
+ async for selected in select(recv1, recv2):
17
+ if recv1.triggered(selected):
18
+ print('Received from recv1:', selected.message)
19
+ if recv2.triggered(selected):
20
+ print('Received from recv2:', selected.message)
21
+ ```
22
23
## Bug Fixes
24
0 commit comments