Skip to content

feat: promisify app.dock.show() - #16904

Merged
codebytere merged 2 commits into
masterfrom
promise-dock-show
Feb 13, 2019
Merged

codebytere merged 2 commits into
masterfrom
promise-dock-show

Conversation

@codebytere

@codebytere codebytere commented Feb 12, 2019 •

Copy link
Copy Markdown
Member

Description of Change

Resolves #13047.

app.dock.show() was previously an asynchronous function that did not take a callback, so devs needed to employ unsavory timeouts and other things in order to give deterministic behavior to their users. This converts that method to return a Promise, which ameliorates that issue and also serves the modernization initiative.

cc @miniak @deepak1556 @ckerr @MarshallOfSound

Checklist

Release Notes

Notes: Converted app.dock.show() such that it now returns a Promise.

@codebytere
codebytere requested review from a team February 12, 2019 15:58
@codebytere codebytere changed the title feat: promisify app.dock.show [wip] feat: promisify app.dock.show Feb 12, 2019
@MarshallOfSound

Copy link
Copy Markdown
Member

Only comment, is it at all possible to test this?

@codebytere codebytere added the semver/major incompatible API changes label Feb 12, 2019
@codebytere codebytere changed the title [wip] feat: promisify app.dock.show feat: promisify app.dock.show Feb 12, 2019
@codebytere

Copy link
Copy Markdown
Member Author

i'm not sure how CI would react to this but i can test that the promise resolves i guess?

@codebytere codebytere changed the title feat: promisify app.dock.show feat: promisify app.dock.show() Feb 12, 2019
@codebytere

Copy link
Copy Markdown
Member Author
app module BrowserWindow events should emit remote-require event when remote.require() is invoked - should emit remote-require event when remote.require() is invoked

flaked on linux x64 which is unrelated.

@codebytere
codebytere merged commit ca83d36 into master Feb 13, 2019
@release-clerk

release-clerk Bot commented Feb 13, 2019

Copy link
Copy Markdown

Release Notes Persisted

Converted app.dock.show() such that it now returns a Promise.

@codebytere
codebytere deleted the promise-dock-show branch February 13, 2019 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver/major incompatible API changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants