Use .shield_channel() meth name from tractor
parent
82c99c5fee
commit
d01ca0bf96
|
@ -113,7 +113,7 @@ async def cascade(
|
|||
stream,
|
||||
):
|
||||
# task cancellation won't kill the channel
|
||||
async with stream.shield():
|
||||
with stream.shield_channel():
|
||||
async for quotes in stream:
|
||||
for symbol, quotes in quotes.items():
|
||||
if symbol == sym:
|
||||
|
|
Loading…
Reference in New Issue