Core Library0.xAPI reference

Choose documentation 1

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

F# API

function libtmux-fsharp

Retry.ifNotSent

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

Source and package
Qualified name
LibTmux.FSharp.Retry.ifNotSent
Namespace
LibTmux.FSharp
Declared in
Retry
Package
LibTmux.FSharp
Source
src/LibTmux.FSharp/Library.fsi
F# value signaturesDeclares 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>

Description

An attempt is repeated only when it fails with NotSent 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
Errors

Same owner

containment 1 of 2 shown

Other members of LibTmux.FSharp.Retry whose names share ifNotSent. They sit on the same type; that does not make them behave alike.

All 2 members of Retry

Recorded calls

source calls
No call edges in the F# model.

The F# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.FSharp.Retry.ifNotSent.

Guides

task material

Pages that discuss ifNotSent.

Esc
Search in

Type to search.

Reference previewOpen reference