threads-supervisor-1.1.0.0: Simple, IO-based library for Erlang-style thread supervision

Safe HaskellSafe
LanguageHaskell2010

Control.Concurrent.Supervisor.Bounded

Description

This module offers a Bounded supervisor variant, where SupervisionEvent(s) are written on a TBQueue, and simply discarded if the queue is full.

Synopsis

Documentation

newSupervisorSpec :: RestartStrategy -> IO SupervisorSpec Source

Creates a new SupervisorSpec. The reason it doesn't return a Supervisor is to force you to call supervise explicitly, in order to start the supervisor thread.

newSupervisorSpecBounded :: RestartStrategy -> Int -> IO SupervisorSpec Source

Like newSupervisorSpec, but give the user control over the size of the event queue.