Hoogle Search
Within LTS Haskell 22.23 (ghc-9.6.5)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
pontarius-xmpp Network.Xmpp.Internal Error is temporary - wait and retry
-
wai-middleware-metrics Network.Wai.Metrics The metrics to feed in WAI and register in EKG.
-
wai-middleware-metrics Network.Wai.Metrics No documentation available.
-
wai-cli Network.Wai.Cli No documentation available.
-
wai-cli Network.Wai.Cli No documentation available.
wait :: String -> Int -> IO ()port-utils Network.Socket.Wait wait will attempt to connect to the given host and port repeated every 10 milliseconds until it is successful. It will throw an IOError if the host cannot be resolved. A typical use case is to call wait in test code to wait for a server to start before trying to connect. For example:
void $ forkIO $ Warp.run 7000 app -- Wait for the server to start listening on the socket wait "127.0.0.1" 7000 -- Communicate with the server
If you would like to control the delay or understand how many connection attempts were made use waitWith. Since 0.0.0.1waitWith :: EventHandlers IO -> Int -> String -> Int -> IO ()port-utils Network.Socket.Wait Advanced usage. In most situations calling wait will suffice. This allows one to customize the delay between retries and debug the behavior of the function. wait is defined as
wait = waitWith mempty defaultDelay
Since 0.2.0.0wait :: String -> Int -> IO ()port-utils Network.Socket.Wait.Internal wait will attempt to connect to the given host and port repeated every 10 milliseconds until it is successful. It will throw an IOError if the host cannot be resolved. A typical use case is to call wait in test code to wait for a server to start before trying to connect. For example:
void $ forkIO $ Warp.run 7000 app -- Wait for the server to start listening on the socket wait "127.0.0.1" 7000 -- Communicate with the server
If you would like to control the delay or understand how many connection attempts were made use waitWith. Since 0.0.0.1waitM :: Monad m => EventHandlers m -> m () -> m Bool -> m ()port-utils Network.Socket.Wait.Internal This function loops if the second argument returns False. Between the recursive calls it will call it's first argument.
waitWith :: EventHandlers IO -> Int -> String -> Int -> IO ()port-utils Network.Socket.Wait.Internal Advanced usage. In most situations calling wait will suffice. This allows one to customize the delay between retries and debug the behavior of the function. wait is defined as
wait = waitWith mempty defaultDelay
Since 0.2.0.0