count property

int get count

The number of messages currently in the mailbox (0 or 1).

Implementation

int get count => _mutex.runLocked(() => _count);