Module

Threading.Barrier

Package
purescript-threading
Repository
cakekindel/purescript-threading

#Barrier Source

data Barrier

A barrier enables multiple threads to synchronize the beginning of some computation.

#barrier Source

barrier :: Int -> Effect Barrier

Create a new barrier that will only unblock waiting threads when n threads are waiting (including this one)

#wait Source

wait :: Barrier -> Aff Unit

Wait until the provided number of threads are also waiting