No more plan for ipc.sendSync in browser.
I want the browser to be fully asynchronous, so sending synchronous messages from browser to renderer will be unacceptable.
This commit is contained in:
parent
1b87a31940
commit
f8899242c5
2 changed files with 1 additions and 8 deletions
|
@ -27,8 +27,3 @@ IPC_SYNC_MESSAGE_ROUTED2_1(AtomViewHostMsg_Message_Sync,
|
||||||
IPC_MESSAGE_ROUTED2(AtomViewMsg_Message,
|
IPC_MESSAGE_ROUTED2(AtomViewMsg_Message,
|
||||||
std::string /* channel */,
|
std::string /* channel */,
|
||||||
ListValue /* arguments */)
|
ListValue /* arguments */)
|
||||||
|
|
||||||
IPC_SYNC_MESSAGE_ROUTED2_1(AtomViewMsg_Message_Sync,
|
|
||||||
std::string /* channel */,
|
|
||||||
ListValue /* arguments */,
|
|
||||||
DictionaryValue /* result */)
|
|
||||||
|
|
|
@ -5,11 +5,9 @@ class Ipc extends EventEmitter
|
||||||
constructor: ->
|
constructor: ->
|
||||||
process.on 'ATOM_INTERNAL_MESSAGE', (args...) =>
|
process.on 'ATOM_INTERNAL_MESSAGE', (args...) =>
|
||||||
@emit(args...)
|
@emit(args...)
|
||||||
process.on 'ATOM_INTERNAL_MESSAGE_SYNC', (args...) =>
|
|
||||||
@emit(args...)
|
|
||||||
|
|
||||||
send: (args...) ->
|
send: (args...) ->
|
||||||
@sendChannel('message', args...)
|
ipc.send('ATOM_INTERNAL_MESSAGE', 'message', args...)
|
||||||
|
|
||||||
sendChannel: (args...) ->
|
sendChannel: (args...) ->
|
||||||
ipc.send('ATOM_INTERNAL_MESSAGE', args...)
|
ipc.send('ATOM_INTERNAL_MESSAGE', args...)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue