Safe Haskell | None |
---|---|
Language | Haskell2010 |
The shard logic
Synopsis
- data Shard = Shard {
- shardID :: Int
- shardCount :: Int
- gateway :: Text
- evtIn :: InChan CalamityEvent
- cmdOut :: OutChan ControlMessage
- shardState :: IORef ShardState
- token :: Text
- initialStatus :: Maybe StatusUpdateData
- intents :: Maybe Intents
- newShard :: Members '[LogEff, MetricEff, Embed IO, Final IO, Async] r => Text -> Int -> Int -> Token -> Maybe StatusUpdateData -> Maybe Intents -> InChan CalamityEvent -> Sem r (InChan ControlMessage, Async (Maybe ()))
Documentation
Shard | |
|