biscuit-haskell-0.2.0.0: Library support for the Biscuit security token

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