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

Retry.ifNotSent

Namespace LibTmux.FSharp.Retry.ifNotSent LibTmux.FSharp

Runs an operation, and again up to <c>retries</c> times while nothing it sent reached tmux.

View as Markdown

Source and package
Module
LibTmux.FSharp
Declared in
Retry
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Library.fsi
F# value signatures Declares the name and type of a value or function in a signature. Language documentation ifNotSent: cancellationToken: CancellationToken -> retries: int -> operation: (CancellationToken -> Task<'T>) -> Task<'T>
function [source]

Description#

An attempt is repeated only when it fails with <c>NotSent</c> and no command it sent before that failure reached tmux, counting every command the operation awaits, including through nested retries. An operation of several steps whose first step ran is therefore not repeated because a later step was refused before dispatch. Any other failure, and cancellation, propagates at once. A read that is safe to repeat whatever happened belongs in the caller's own retry policy.

Parameters
Raises

Discussed in .NET interoperation

Esc

Type to search.