atom / autosave

Autosaves buffers when they lose focus
MIT License
63 stars 29 forks source link

Delay package deactivation until pending saves complete #83

Closed smashwilson closed 7 years ago

smashwilson commented 7 years ago

Return a Promise from .deactivate() that resolves when all saves currently in progress complete, successfully or otherwise.

Depends on atom/atom#15740 and atom/atom#15554 for async deactivate support in core, so this won't work until Atom >= v1.21.0-beta0, and I'll need to make sure the specs are still green on stable and beta somehow :eyes:

Fixes #67.