tdlib-0.1.3: Bidings to the tdlib json interface
Safe HaskellNone
LanguageHaskell2010

TDLib.EventLoop

Description

A heavyweight TDLib effect intepreter written using event loop

Documentation

type Locks = TVar (IntMap ()) Source #

insertAns :: Int -> Locks -> Ans -> Value -> STM () Source #

lock :: Int -> Locks -> STM () Source #

runCommand :: (ToJSON a, FromJSON b, FromJSON err) => Client -> Int -> Locks -> Ans -> a -> IO (err b) Source #