Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 76fd145

Browse files
author
Lucas CORBEAUX
committed
Adding a comment to explain the trio v0.11.0 compatibility changes
1 parent 0d0378e commit 76fd145

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/09-built-on-asyncio/the_trio/prod_trio.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ async def main():
88
t0 = datetime.datetime.now()
99
print(colorama.Fore.WHITE + "App started.", flush=True)
1010

11+
"""
12+
trio.Queue was removed in v0.11.0:
13+
- Replacing the call to trio.Queue() by trio.open_memory_channel()
14+
- Using a MemorySendChannel object in generate_data function
15+
- Using a MemoryReceiveChannel object in process_data function
16+
- Updating requirements.txt with trio v0.16.0 and trio_asyncio v0.11.0
17+
"""
18+
1119
send_channel, receive_channel = trio.open_memory_channel(max_buffer_size=10)
1220

1321
with trio.move_on_after(5):

0 commit comments

Comments
 (0)