Skip to main content

Locks

Type Alias Locks 

Source
pub(super) type Locks = MutexMap<(OwnedUserId, SmallString<[u8; 48]>), ()>;
Expand description

Serializes the writes to each email pusher’s rows.

It holds one entry per pusher with a holder: put_pusher, delete_pusher and the worker’s start_cursor, record_state, forget_orphan and forget_unbound. None holds it across sending a mail.

Aliased Type§

pub(super) struct Locks { /* private fields */ }