Returns a notification. Note that this function is consuming.
(self)
| 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 | """ |