~/bend-docscommunity

retry.bend checks

raw source on the hub · import 0xa5cb3bcb5934c7197270026df10c23dc/retry.bend as Retry

1 import
import Base

Types

type RetryPolicy source · line 3 · raw

Data

Definitions

def Retry.default source · line 6 · raw

RetryPolicy

def Retry.permanent_code source · line 9 · raw

U32

def Retry.permanent source · line 12 · raw

@msg:String -> Result<&1, &1, Pair(U32, String), Unit>

def Retry.when_not_permanent source · line 15 · raw

@policy:RetryPolicy -> @attempt:Nat -> Bool

def Retry.when_permanent source · line 20 · raw

@flag:Bool -> @policy:RetryPolicy -> @attempt:Nat -> Bool

def Retry.is_permanent source · line 27 · raw

@r:Result<&1, &1, Pair(U32, String), Unit> -> Bool

def Retry.should_retry source · line 34 · raw

@policy:RetryPolicy -> @attempt:Nat -> @r:Result<&1, &1, Pair(U32, String), Unit> -> Bool

def Retry.sleep source · line 41 · raw

@policy:RetryPolicy -> @attempt:Nat -> IO(Unit)