ouroboros-consensus-test-0.1.0.0: Tests of the consensus layer
Safe HaskellNone
LanguageHaskell2010

Test.Util.FileLock

Synopsis

Documentation

mockFileLock Source #

Arguments

Maybe DiffTime

Optional release delay

→ IOSim s (FileLock (IOSim s)) 

Mock in-memory implementation of FileLock.

Supports an optional delay in release to simulate lazy, non-synchronous unlocking as done by Linux (near instantaneous but not instant) and Windows.