Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Type aliases

MaxRetries

MaxRetries: "max-retries"

A RetriableTask failed too many times.

RetriableTask

RetriableTask<E, T>: E extends TransientError ? never : TaskEither<E | TransientError, T>

A Task that can be retried when it fails with a transient error

Type parameters

  • E

  • T

RetryAborted

RetryAborted: "retry-aborted"

A RetriableTask has been aborted.

TransientError

TransientError: "transient"

In the context of a retriable task, when it returns a TransientError the task can be executed again.

Variables

MaxRetries

MaxRetries: "max-retries"

RetryAborted

RetryAborted: "retry-aborted"

TransientError

TransientError: "transient"

Functions

Const delayTask

  • Returns a Task that resolves to a value after a delay.

    Type parameters

    • A

    Parameters

    Returns Task<A>

withRetries

Legend

  • Variable
  • Function
  • Function with type parameter
  • Type alias
  • Type alias with type parameter
  • Interface
  • Interface with type parameter
  • Enumeration
  • Class with type parameter

Generated using TypeDoc