Module

Examples.SharedMapDemo

Package
purescript-yoga-om-workerbees
Repository
rowtype-yoga/purescript-yoga-om-workerbees

#UserRecord Source

type UserRecord = { active :: Boolean, id :: Int, name :: String }

#mapDemo Source

mapDemo :: Aff Unit

Console demo of SharedMap (concurrent hash map with striped locks)

This demonstrates:

  • Creating a shared concurrent hash map
  • Insert, lookup, and modify operations
  • Thread-safe concurrent access
  • Striped lock-based synchronization