refactor: try just using regular [Sync] for MessageSync (#20797)

This commit is contained in:
Jeremy Apthorp 2019-12-17 11:35:28 -08:00 committed by GitHub
parent 6cc9f0c34e
commit 54b4756a29
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 16 additions and 106 deletions

View file

@ -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,