Added timeout and limit to script entries

This commit is contained in:
Niels Geens
2024-11-13 17:48:39 +01:00
parent 65478e0b17
commit 834ce12e8f
21 changed files with 262 additions and 141 deletions

View File

@@ -13,14 +13,19 @@ class ReadEntry(Entry):
_read: Whether content has been read
"""
def __init__(self, io_buffer, id: str, timestamp: datetime):
def __init__(
self,
id: str,
timestamp: datetime,
io_buffer,
):
"""
Initialize a new read entry.
Args:
io_buffer: Buffer to use for IO operations
id: Unique identifier for this entry
timestamp: Creation timestamp for this entry
io_buffer: Buffer to use for IO operations
"""
super().__init__(id, timestamp)
self._content = ""