| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Arbiter.Test.Poll
Description
Polling helpers for tests.
Synopsis
- waitUntil :: HasCallStack => Int -> IO Bool -> IO ()
- withLinkedAsync :: MonadUnliftIO m => m a -> (Async a -> m b) -> m b
Documentation
Source #waitUntil :: HasCallStack => Int -> IO Bool -> IO ()
Poll every 100 ms until the predicate returns True.
Fails with expectationFailure after timeoutMs milliseconds.
Source #withLinkedAsync :: MonadUnliftIO m => m a -> (Async a -> m b) -> m b