From 6393a0cf7a72d958f6138d978d59876f6ccf0202 Mon Sep 17 00:00:00 2001 From: Tai Sakuma Date: Mon, 11 Apr 2022 13:20:37 -0400 Subject: [PATCH] yield only new data for stdout subscription --- nextline/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nextline/main.py b/nextline/main.py index 4e33c639..f01b72f5 100644 --- a/nextline/main.py +++ b/nextline/main.py @@ -219,5 +219,5 @@ def flush(self): self._buffer = "" async def subscribe(self): - async for y in self._queue.subscribe(): # type: ignore + async for y in self._queue.subscribe(last=False): # type: ignore yield y