mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 06:16:30 +03:00
Emit events from account manager
Errors and warnings are emitted with a special 0 account ID.
This commit is contained in:
@@ -62,10 +62,6 @@ impl Events {
|
||||
pub struct EventEmitter(Receiver<Event>);
|
||||
|
||||
impl EventEmitter {
|
||||
pub(crate) fn into_inner(self) -> Receiver<Event> {
|
||||
self.0
|
||||
}
|
||||
|
||||
/// Blocking recv of an event. Return `None` if the `Sender` has been droped.
|
||||
pub fn recv_sync(&self) -> Option<Event> {
|
||||
async_std::task::block_on(self.recv())
|
||||
|
||||
Reference in New Issue
Block a user