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

Use ConcurrentHashMap in StoreManager #5061

Closed

Conversation

jblebrun
Copy link
Collaborator

And use the structure for managing Stores in [StorageService] as well.
This way, our strategy for uniquely identifying a [Store] (currently
done by just its storage key) is centralized in one place.

And use the structure for managing Stores in [StorageService] as well.
This way, our strategy for uniquely identifying a [Store] (currently
done by just its storage key) is centralized in one place.
import kotlinx.coroutines.sync.Mutex
import kotlinx.coroutines.sync.withLock
import arcs.core.crdt.CrdtOperation
import java.util.concurrent.ConcurrentHashMap
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ConcurrentHashMap is part of the Java standard library, so it's not going to compile to JS/Wasm...

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah, right :(

@jblebrun jblebrun closed this Mar 27, 2020
@jblebrun jblebrun deleted the store-manager-concurrent-map branch March 27, 2020 23:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants