Google | Onsite | Software Engineer | London | L4/L5

Anonymous User
3619
May 02, 2021
May 04, 2021

Implement a function retry(fn, retries, data, successCallback, errorCallback) which retries another function fn up until retries times in case errorCallback of a function fn was triggered.

Function fn has the following signature fn(data, successCallback, errorCallback).

Comments (8)