Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No filelock in the nim standard library #24162

Open
forchid opened this issue Sep 23, 2024 · 2 comments
Open

No filelock in the nim standard library #24162

forchid opened this issue Sep 23, 2024 · 2 comments

Comments

@forchid
Copy link

forchid commented Sep 23, 2024

Summary

I want to use the filelock function in nim, but can't found it in nim standard library.

Description

No filelock function in nim.

Alternatives

No response

Examples

No response

Backwards Compatibility

No response

Links

No response

@Clonkk
Copy link
Contributor

Clonkk commented Sep 23, 2024

Why would something like filelock be in the standard library when it's not really standard and easily implemented in a nimble package ?

You can even do better and have a mutex stored in a shared memory in-between process.

@bhaskar1001101
Copy link

@forchid status-im/nim-stew has a working implementation of file locking in nim. It looks like an unstable nimble package though so you'll have to stick to a specific git hash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants