Hoogle Search
Within LTS Haskell 24.3 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
wait :: 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.0waitForConfirms :: Channel -> IO ConfirmationResultamqp Network.AMQP Calling this function will cause the invoking thread to block until all previously published messages have been acknowledged by the broker (positively or negatively). Returns a value of type ConfirmationResult, holding a tuple of two IntSets (acked, nacked), ontaining the delivery tags for the messages that have been confirmed by the broker.
waitForConfirmsUntil :: Channel -> Int -> IO ConfirmationResultamqp Network.AMQP Same as waitForConfirms, but with a timeout in microseconds. Note that, since this operation may timeout before the server has acked or nacked all pending messages, the returned ConfirmationResult should be pattern-matched for the constructors Complete (acked, nacked) and Partial (acked, nacked, pending)
waitSerialized :: Serialize a => Socket -> IO acrypton-socks Network.Socks5.Lowlevel Wait for data from the specified socket.
-
http-reverse-proxy Network.HTTP.ReverseProxy Creates a WAI Application which will handle reverse proxies. Connections to the proxied server will be provided via http-conduit. As such, all requests and responses will be fully processed in your reverse proxy. This allows you much more control over the data sent over the wire, but also incurs overhead. For a lower-overhead approach, consider rawProxyTo. Most likely, the given application should be run with Warp, though in theory other WAI handlers will work as well. Note: This function will use chunked request bodies for communicating with the proxied server. Not all servers necessarily support chunked request bodies, so please confirm that yours does (Warp, Snap, and Happstack, for example, do).
waiProxyToSettings :: (Request -> IO WaiProxyResponse) -> WaiProxySettings -> Manager -> Applicationhttp-reverse-proxy Network.HTTP.ReverseProxy No documentation available.
waitForMessage :: (Message -> Bool) -> Session -> IO Messagepontarius-xmpp Network.Xmpp Draw and discard stanzas from the inbound channel until a message matching the given predicate is found. Returns the matching message.
waitForMessageA :: (Annotated Message -> Bool) -> Session -> IO (Annotated Message)pontarius-xmpp Network.Xmpp Draw and discard stanzas from the inbound channel until a message matching the given predicate is found. Returns the matching message with annotations.