Skip to main content
Version: 8.9 (unreleased)

Function: retryTE()

Technical Preview

The Functional Programming API is a technical preview. Its surface may change in future releases without following semver.

function retryTE<E, A>(task, opts): TaskEither<E, A>;

Defined in: fp-ts.ts:128

Type Parameters

E

E

A

A

Parameters

task

TaskEither<E, A>

opts

baseDelayMs?

number

max

number

shouldRetry?

(e, attempt) => boolean | Promise<boolean>

Returns

TaskEither<E, A>