Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Prepare for editor.save becoming async #64

Merged
merged 4 commits into from
Jun 16, 2017
Merged

Prepare for editor.save becoming async #64

merged 4 commits into from
Jun 16, 2017

Conversation

rictic
Copy link
Contributor

@rictic rictic commented Jun 15, 2017

Fixes #63

This fix should be both backcompatible and forwardcompatible, as returning something that's not a promise from a promise callback will resolve immediately, whereas returning a promise will wait for the promise, so it should do the right thing whether save is sync or async.

  • CHANGELOG.md not updated, internal change

Fixes #63

This fix should be both backcompatible and forwardcompatible, as returning something that's not a promise from a promise callback will resolve immediately, whereas returning a promise will wait for the promise, so it should do the right thing whether save is sync or async.
@rictic rictic requested a review from TimvdLippe June 15, 2017 21:42
@TimvdLippe
Copy link
Contributor

Seems like a nice fix. Lets see if the tests still pass 😄

@rictic rictic merged commit c057503 into master Jun 16, 2017
@rictic rictic deleted the rictic-patch-1 branch June 16, 2017 16:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Changes required due to TextBuffer.save becoming async in Atom 1.19
2 participants