Module
Examples.Workers.HashWorker
- Package
- purescript-yoga-om-workerbees
- Repository
- rowtype-yoga/purescript-yoga-om-workerbees
#HashOutput Source
type HashOutput = { hash :: String, length :: Int }Output type for the worker
#simpleHash Source
simpleHash :: String -> IntSimple hash function (for demonstration - not cryptographically secure!)
#computeHash Source
computeHash :: String -> Int -> StringCPU-intensive hash calculation with multiple iterations
#worker Source
worker :: WorkerContext Unit HashInput HashOutput -> Effect UnitWorker main function This receives inputs and sends back outputs
- 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