MCPcopy Create free account
hub / github.com/jasperproject/jasper-client / getNotification

Method getNotification

client/notifier.py:55–61  ·  view source on GitHub ↗

Returns a notification. Note that this function is consuming.

(self)

Source from the content-addressed store, hash-verified

53 return lastDate
54
55 def getNotification(self):
56 """Returns a notification. Note that this function is consuming."""
57 try:
58 notif = self.q.get(block=False)
59 return notif
60 except Queue.Empty:
61 return None
62
63 def getAllNotifications(self):
64 """

Callers 1

getAllNotificationsMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected