sdk.automation.errorstepwithrepeat
Home > @matterway/sdk > Automation > errorStepWithRepeat
Automation.errorStepWithRepeat() function
If function will catch error, it will display bubble with message and option to retry.
Signature:
export declare function errorStepWithRepeat<T>(ctx: Context, fn: () => Promise<T>, options?: ErrorStepWithRepeatOptions): Promise<T | undefined>;
Parameters
Parameter | Type | Description |
---|---|---|
ctx | Context | Context |
fn | () => Promise<T> | main function you want to run |
options | ErrorStepWithRepeatOptions | (Optional) description?: optional bubble description |
Returns:
Promise<T | undefined>
any type