mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: try just using regular [Sync] for MessageSync (#20797)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user