Core LibraryAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux-fsharp latest

Control.cleanupFailure

Namespace LibTmux.FSharp.Control.cleanupFailure LibTmux.FSharp

Returns the cleanup failure attached to the exception a helper rethrew.

View as Markdown

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
function [source]

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

Esc

Type to search.