From d01ca0bf96485771f461f64a8c5873ebeab4f7d5 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 17 Dec 2020 09:27:18 -0500 Subject: [PATCH] Use .shield_channel() meth name from tractor --- piker/fsp/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/fsp/__init__.py b/piker/fsp/__init__.py index ec169c42..ad08bb7e 100644 --- a/piker/fsp/__init__.py +++ b/piker/fsp/__init__.py @@ -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: