Calling asynchronous functions in renderer now doesn't block browser.
This commit is contained in:
parent
085f0a2544
commit
14de58a6b7
2 changed files with 17 additions and 4 deletions
|
@ -1,4 +1,5 @@
|
|||
binding = process.atomBinding 'dialog'
|
||||
v8Util = process.atomBinding 'v8_util'
|
||||
BrowserWindow = require 'browser-window'
|
||||
|
||||
fileDialogProperties =
|
||||
|
@ -72,3 +73,6 @@ module.exports =
|
|||
String(options.detail),
|
||||
window,
|
||||
callback
|
||||
|
||||
# Mark standard asynchronous functions.
|
||||
v8Util.setHiddenValue f, 'asynchronous', true for k, f of module.exports
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue