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