Skip to main content

makeResilient

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/errors/errorHandling / makeResilient

Function: makeResilient()

makeResilient(fn: Function, fallback: any, options?: Object): Function

Defined in: utils/errors/errorHandling.js:388

Create a resilient version of a function that continues on error with fallback

Parameters​

fn​

Function

Function to make resilient

fallback​

any

Fallback value

options?​

Object = {}

Options

Returns​

Function

Resilient function