Skip to content

Commit

Permalink
yield only new data for stdout subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Apr 11, 2022
1 parent b6ed702 commit 6393a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nextline/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6393a0c

Please sign in to comment.