Module
Yoga.Om.WorkerBees.SharedMap
- Package
- purescript-yoga-om-workerbees
- Repository
- rowtype-yoga/purescript-yoga-om-workerbees
#insert Source
insert :: forall a. ReadForeign a => WriteForeign a => String -> a -> SharedMap a -> Effect UnitInsert or overwrite a key-value pair.
#delete Source
delete :: forall a. ReadForeign a => WriteForeign a => String -> SharedMap a -> Effect UnitDelete a key. No-op if key doesn't exist.
#modify Source
modify :: forall a. ReadForeign a => WriteForeign a => String -> (a -> a) -> SharedMap a -> Effect (Maybe a)Atomically modify the value at a key. Returns the new value, or Nothing if not found.
#toSendable Source
toSendable :: forall a. SharedMap a -> SendWrapper (SharedMap a)Wrap for worker transfer.
#fromSendable Source
fromSendable :: forall a. SendWrapper (SharedMap a) -> Effect (SharedMap a)Unwrap on the worker side. Reconstructs Int32Array views from the shared buffer.
- Modules
- Examples.
FibonacciDemo - Examples.
SharedCounterDemo - Examples.
SharedMapDemo - Examples.
SharedStateDemo - Examples.
Workers. CounterWorker - Examples.
Workers. FibonacciWorker - Examples.
Workers. HashWorker - Yoga.
Om. WorkerBees - Yoga.
Om. WorkerBees. Atomics - Yoga.
Om. WorkerBees. SharedArrayBuffer - Yoga.
Om. WorkerBees. SharedInt - Yoga.
Om. WorkerBees. SharedMap - Yoga.
Om. WorkerBees. SharedState