[core] extract weak_ptr mailbox->receive into Mailbox::maybeReceive
This commit is contained in:
@@ -83,9 +83,7 @@ private:
|
||||
|
||||
void schedule(std::weak_ptr<Mailbox> mailbox) override {
|
||||
invoke([mailbox] () {
|
||||
if (auto locked = mailbox.lock()) {
|
||||
locked->receive();
|
||||
}
|
||||
Mailbox::maybeReceive(mailbox);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user