biscuit-haskell-0.2.1.0: Library support for the Biscuit security token
Copyright© Clément Delafargue 2021
LicenseMIT
Maintainerclement@delafargue.name
Safe HaskellSafe-Inferred
LanguageHaskell2010

Auth.Biscuit.Timer

Description

Helper function making sure an IO action runs in an alloted time

Synopsis

Documentation

timer :: Int -> IO a -> IO (Maybe a) Source #

Given a maximum execution time, run the provide action, and fail (by returning Nothing) if it takes too much time. Else, the action result is returned in a Just