Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Provides the PollInterval
type.
Since: 0.1
Synopsis
- newtype PollInterval = MkPollInterval {}
- pollIntervalOptDecoder :: Decoder (Maybe PollInterval)
- toSleepTime :: PollInterval -> Int
Documentation
newtype PollInterval Source #
Represents how often to poll for service changes, in seconds.
Since: 0.1
Instances
pollIntervalOptDecoder :: Decoder (Maybe PollInterval) Source #
TOML decoder for optional PollInterval
with field name 'poll-interval'.
Since: 0.1
toSleepTime :: PollInterval -> Int Source #
Converts a PollInterval
into an Int
suitable to be used with
threadDelay.
Since: 0.1