Data gets the current state of the mailbox
()
| 56 | |
| 57 | // Data gets the current state of the mailbox |
| 58 | func (mh *MailboxHandle) Data() (*MailboxData, error) { |
| 59 | return mh.m.Data(mh.key) |
| 60 | } |
| 61 | |
| 62 | // Update updates the state of the mailbox, or creates if does not exist |
| 63 | func (mh *MailboxHandle) Update(oldMessages int, newMessages int) error { |