better logo (demo)

This commit is contained in:
Yeicor
2024-03-03 11:18:29 +01:00
parent 4c7be17ddc
commit ccb8d1c4e7
8 changed files with 52 additions and 34 deletions

View File

@@ -58,3 +58,7 @@ class BufferedPubSub(Generic[T]):
yield v
finally: # When aclose() is called
await self._unsubscribe(q)
def buffer(self) -> List[T]:
"""Returns a shallow copy of the list of buffered events"""
return self._buffer[:]