Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

feat: add getLockFileGuard method to util #179

Merged
merged 1 commit into from
Apr 23, 2020
Merged

Conversation

jlipps
Copy link
Member

@jlipps jlipps commented Apr 22, 2020

the idea is to support guarding behaviors across multiple processes: appium/appium#13463 (review)

@jlipps jlipps changed the title add getLockFileGuard method to util feat: add getLockFileGuard method to util Apr 22, 2020
@mykola-mokhnach
Copy link
Contributor

I would rather use some ready solution like https://www.npmjs.com/package/lockfile and create a wrapper over it inside appium-support

@jlipps
Copy link
Member Author

jlipps commented Apr 23, 2020

@mykola-mokhnach updated. I did actually look for something like this ahead of time but somehow didn't come across this implementation!

lib/fs.js Outdated Show resolved Hide resolved
lib/util.js Outdated Show resolved Hide resolved
lib/util.js Outdated Show resolved Hide resolved
lib/util.js Outdated Show resolved Hide resolved
@jlipps
Copy link
Member Author

jlipps commented Apr 23, 2020

comments addressed!

lib/util.js Outdated Show resolved Hide resolved
@jlipps jlipps merged commit 4f12c33 into master Apr 23, 2020
@jlipps jlipps deleted the jlipps/file-lock branch April 23, 2020 17:55
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.

None yet

2 participants