glue-core-0.6.3: Make better services and clients.

Safe HaskellSafe
LanguageHaskell2010

Glue.DogpileProtection

Description

Module supporting the dogpile protection of a service, see http://en.wikipedia.org/wiki/Cache_stampede.

Synopsis

Documentation

dogpileProtect Source #

Arguments

:: (Eq a, Hashable a) 
=> BasicService IO a b

The service to protect.

-> IO (BasicService IO a b) 

Dogpile protection of a service, to prevent multiple calls for the same value being submitted. | Loses the values held within m.