mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 04:24:35 +03:00
17 lines
497 B
Haskell
17 lines
497 B
Haskell
|
module Control.Concurrent.Extended
|
||
|
( module Control.Concurrent
|
||
|
, threadDelay
|
||
|
) where
|
||
|
|
||
|
import Prelude
|
||
|
|
||
|
import qualified Control.Concurrent as Base
|
||
|
|
||
|
import Control.Concurrent hiding (threadDelay)
|
||
|
import Data.Time.Clock (DiffTime)
|
||
|
import Data.Time.Clock.Units (Microseconds (..))
|
||
|
|
||
|
-- | Like 'Base.threadDelay', but takes a 'DiffTime' instead of an 'Int'.
|
||
|
threadDelay :: DiffTime -> IO ()
|
||
|
threadDelay = Base.threadDelay . round . Microseconds
|