Closed jwaldmann closed 6 years ago
e.g., Presenter/StarExec/Connection.hs
runCon_exclusive :: Handler b -> Handler b runCon_exclusive action = do lock <- conSem <$> getYesod -- Lock.withWrite lock action -- FIXME: -- bracket_ -- ( liftIO $ Lock.acquireWrite lock ) -- ( liftIO $ (Lock.releaseWrite >=> either throw return) lock) action
cf. https://mail.haskell.org/pipermail/haskell-cafe/2018-April/128981.html and follow-up
e.g., Presenter/StarExec/Connection.hs