Safe Haskell | None |
---|---|
Language | Haskell2010 |
Admin.Component.Health
Synopsis
- type HealthAPI = "status" :> Get '[JSON] ApplicationState
- type HealthComponent = Component "health" HealthAPI
- health :: Show a => Async a -> HealthComponent
- serveHealth :: (MonadIO m, Show a) => Async a -> m ApplicationState
- async :: IO a -> IO (Async a)
- data Async a
Documentation
type HealthComponent = Component "health" HealthAPI Source #
serveHealth :: (MonadIO m, Show a) => Async a -> m ApplicationState Source #
An asynchronous action spawned by async
or withAsync
.
Asynchronous actions are executed in a separate thread, and
operations are provided for waiting for asynchronous actions to
complete and obtaining their results (see e.g. wait
).
Instances
Functor Async | |
Eq (Async a) | |
Ord (Async a) | |
Defined in Control.Concurrent.Async | |
Hashable (Async a) | |
Defined in Control.Concurrent.Async |