polysemy-process-0.14.1.0: Polysemy effects for system processes
Safe HaskellSafe-Inferred
LanguageGHC2021

Polysemy.Process.Interpreter.Interrupt

Description

 
Synopsis

Documentation

interpretInterruptWith' :: Members [Critical, Race, Async, Embed IO] r => Bool -> ((SignalInfo -> IO ()) -> Handler) -> InterpreterFor Interrupt r Source #

Interpret Interrupt by installing a signal handler.

Takes a constructor for Handler.

interpretInterrupt' :: Members [Critical, Race, Async, Embed IO] r => Bool -> InterpreterFor Interrupt r Source #

Interpret Interrupt by installing a signal handler.

Catches repeat invocations of SIGINT.

interpretInterrupt :: Members [Critical, Race, Async, Embed IO] r => InterpreterFor Interrupt r Source #

Interpret Interrupt by installing a signal handler.

Catches repeat invocations of SIGINT.

interpretInterruptOnce' :: Members [Critical, Race, Async, Embed IO] r => Bool -> InterpreterFor Interrupt r Source #

Interpret Interrupt by installing a signal handler.

Catches only the first invocation of SIGINT.

interpretInterruptOnce :: Members [Critical, Race, Async, Embed IO] r => InterpreterFor Interrupt r Source #

Interpret Interrupt by installing a signal handler.

Catches only the first invocation of SIGINT.

interpretInterruptNull :: InterpreterFor Interrupt r Source #

Eliminate Interrupt without interpreting.