File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ def on_message_received(self, msg: Message) -> None:
105
105
106
106
def get_message (self , timeout : float = 0.5 ) -> Optional [Message ]:
107
107
"""
108
- Attempts to retrieve the latest message received by the instance. If no message is
109
- available it blocks for given timeout or until a message is received, or else
110
- returns None (whichever is shorter). This method does not block after
111
- :meth:`can.BufferedReader.stop` has been called.
108
+ Attempts to retrieve the message that has been in the queue for the longest amount
109
+ of time (FIFO). If no message is available, it blocks for given timeout or until a
110
+ message is received (whichever is shorter), or else returns None . This method does
111
+ not block after :meth:`can.BufferedReader.stop` has been called.
112
112
113
113
:param timeout: The number of seconds to wait for a new message.
114
- :return: the Message if there is one, or None if there is not .
114
+ :return: the received :class:`can. Message` or ` None`, if the queue is empty .
115
115
"""
116
116
try :
117
117
if self .is_stopped :
You can’t perform that action at this time.
0 commit comments