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

Closeable and clear on close #105

Open
JanMalch opened this issue May 25, 2024 · 2 comments
Open

Closeable and clear on close #105

JanMalch opened this issue May 25, 2024 · 2 comments

Comments

@JanMalch
Copy link

Hi, I think it would be useful if the store implements AutoCloseable and one can configure the store to delete all data when it's closed. What do you think?

@xxfast
Copy link
Owner

xxfast commented Jun 14, 2024

Hi. Do you mean AutoCloseable from Java? What would be equivalent API / behaviors from other platforms will be?

@JanMalch
Copy link
Author

JanMalch commented Jun 14, 2024

There seems to be a multiplatform-ready interface in the standard library: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-auto-closeable/

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

No branches or pull requests

2 participants