Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Future a = Future (IO (Maybe a))
- tryNow :: MonadUnliftIO m => Future a -> m (Maybe a)
- awaitFuture :: MonadUnliftIO m => Future b -> m b
Documentation
A wrapper around an IO action that returns value in the future.
awaitFuture :: MonadUnliftIO m => Future b -> m b Source #
Poll a Future until the value is present.