retry

suspend external fun <T> retry(name: String, method: () -> Promise<T>, getStatusCode: (arg0: T) -> Number?, maxAttempts: Number = definedExternally, delay: Number = definedExternally, onError: (JsError) -> T?? = definedExternally): T(source)