Update 'src/pubsub/pubsub/pubsub_library_v4.py'
This commit is contained in:
parent
dc0e4a48cd
commit
ae20df933b
@ -116,6 +116,10 @@ class MinimalSubscriber(Node):
|
|||||||
self.msg = msg
|
self.msg = msg
|
||||||
return
|
return
|
||||||
|
|
||||||
|
def has_msg(self):
|
||||||
|
# Check if a maessage has been received
|
||||||
|
return self.msg is not None
|
||||||
|
|
||||||
def return_msg(self):
|
def return_msg(self):
|
||||||
return self.msg
|
return self.msg
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user