entwine-0.0.2: entwine - Concurrency tools

Safe HaskellNone
LanguageHaskell98

Entwine.Data.Gate

Synopsis

Documentation

data Gate Source #

A gate is an abstract type, representing a simple barrier that can only have its state queried in a non-blocking manner.

This useful for implementing things like passing in a gate to terminate or stop a loop.

close :: Gate -> IO () Source #