Control.cleanupFailure
LibTmux.FSharp Returns the cleanup failure attached to the exception a helper rethrew.
Source and package
- Module
- LibTmux.FSharp
- Declared in
- Control
- Package
- LibTmux.FSharp
- Source
- src/LibTmux.FSharp/Control.fsi
- F# value signatures Declares the name and type of a value or function in a signature. Language documentation cleanupFailure: error: exn -> exn option
-
Description#
When work and cleanup both fail, the helpers rethrow the work's exception unchanged and attach the cleanup's; this reads it back. The work's exception keeps its type so that a handler written for it, such as <c>:? TmuxPaneException</c> or a <c>when</c> filter, still matches; an <c>AggregateException</c> of both would slip past those handlers.
- Parameters
-
-
error ( exn )
-
Discussed in Execution modes , Streams and cleanup