Closed alt-jero closed 6 years ago
Thanks @alt-jero , I hope your workaround will help others who want to use promises.
Supporting promises is a non-goal however. I would rather encourage vanilla JS. It's more efficient from a performance perspective.
Trying to use with Promisify library may produce the following error if any files are indeed open:
even if it does work with no files open. Thus: the following code will allow you to use this with promises:
and can be used like so: