Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
This module offers a Bounded
supervisor variant,
where SupervisionEvent
(s) are written on a TBQueue
,
and simply discarded if the queue is full.
- type SupervisorSpec = SupervisorSpec0 TBQueue
- type Supervisor = Supervisor0 TBQueue
- type Child = Child_ TBQueue
- newSupervisorSpec :: IO SupervisorSpec
- newSupervisorSpecBounded :: Int -> IO SupervisorSpec
- newSupervisor :: SupervisorSpec -> IO Supervisor
Documentation
type Supervisor = Supervisor0 TBQueue Source
newSupervisorSpec :: 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 :: Int -> IO SupervisorSpec Source
Like newSupervisorSpec
, but give the user control over the size of the
event queue.