refactor: try just using regular [Sync] for MessageSync (#20797)
This commit is contained in:
parent
6cc9f0c34e
commit
54b4756a29
4 changed files with 16 additions and 106 deletions
|
@ -55,10 +55,7 @@ interface ElectronBrowser {
|
|||
|
||||
// Emits an event on |channel| from the ipcMain JavaScript object in the main
|
||||
// process, and waits synchronously for a response.
|
||||
//
|
||||
// NB. this is not marked [Sync] because mojo synchronous methods can be
|
||||
// reordered with respect to asynchronous methods on the same channel.
|
||||
// Instead, callers can manually block on the response to this method.
|
||||
[Sync]
|
||||
MessageSync(
|
||||
bool internal,
|
||||
string channel,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue