How to use the vue-composable.exponentialDelay function in vue-composable

To help you get started, we’ve selected a few vue-composable examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pikax / vue-composable / docs / .vuepress / components / RetryExample.vue View on Github external
const retryDelay = n => {
      switch (mode.value) {
        case "delay":
          return delay.value;
        case "backoff":
          return exponentialDelay(n);
      }
    };