Skip to content

Instantly share code, notes, and snippets.

@cdmunoz
Created May 30, 2023 03:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cdmunoz/fbf1a3dcfeb4604151a71c6f97611eff to your computer and use it in GitHub Desktop.
Save cdmunoz/fbf1a3dcfeb4604151a71c6f97611eff to your computer and use it in GitHub Desktop.
await onErrorRetry(
doIt: () async {
await _twilioModule.setup();
_analytic.track('Platform Loaded');
_router.replaceTo(HomeRoute());
status = status.rebuild((b) => b..isLoadingVisible = false);
},
onRetry: (ex, retryCount, retryInMilliseconds) {
Fimber.w(
'$_tag Retrying to create conversations client in milliseconds($retryInMilliseconds) retryCount($retryCount) error($ex)',
);
},
maxRetries: 2,
delayMilliseconds: 100,
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment