Link Search Menu Expand Document

Task overview

Added in v0.1.0


Table of contents


utils

applyAndDelay

Apply policy and delay by its amount if it results in a retry. Returns updated status.

Signature

export declare function applyAndDelay(policy: RetryPolicy, status: RetryStatus): T.Task<RetryStatus>

Added in v0.1.0

retrying

Retry combinator for actions that don’t raise exceptions, but signal in their type the outcome has failed. Examples are the Option, Either and EitherT monads.

Signature

export declare function retrying<A>(
  policy: RetryPolicy,
  action: (status: RetryStatus) => T.Task<A>,
  check: (a: A) => boolean
): T.Task<A>

Added in v0.1.0