Skip to content

Commit

Permalink
life status
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-usielski committed Jan 24, 2024
1 parent b5fde45 commit 37f44f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moler/util/connection_observer_life_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
"""
self.inactivity_timeout: float = 0.0 # If positive value and no data are sent by connection in this time then method
# on_inactivity will be called.
self.last_feed_time: Optional(float) = None # Time of last called data_received or on_inactivity.
self.last_feed_time: Optional[float] = None # Time of last called data_received or on_inactivity.
self.start_time: float = 0.0 # means epoch: 1970-01-01 00:00:00
self.in_terminating: bool = False # Set True if ConnectionObserver object is just after __timeout but it can do
# something during terminating_timeout. False if the ConnectionObserver object runs
Expand All @@ -25,6 +25,6 @@ def __init__(self):
self.terminating_timeout: float = 0.0 # value for terminating connection_observer when it timeouts. Set positive value
# for command if they can do anything if timeout. Set 0 for observer or command
# if it cannot do anything if timeout.
self.timeout: Optional(float) = 20.0 # default
self.timeout: Optional[float] = 20.0 # default
self.is_done: bool = False
self.is_cancelled: bool = False

0 comments on commit 37f44f7

Please sign in to comment.