Skip to content

About

Retries the given function using a backoff algorithm.

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

@nrfcloud/wait-for-it

https://github.com/nRFCloud/wait-for-it/pkgs/npm/wait-for-it

Installation

The package is published to the GitHub Packages registry. Releases are also published to npm.

To install it, point the @nrfcloud scope to it in your project's .npmrc and authenticate with a token that has the read:packages scope:

@nrfcloud:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
npm i (--save-prod|--save-dev) @nrfcloud/wait-for-it

Usage

import { waitForIt } from "@nrfcloud/wait-for-it";
const tenant = await wait_for_it<Tenant>(() => repo.getByUUID(e.aggregateUUID));

Node & NPM

This project requires npm >=12.0.2 <13 (enforced via check-node-version on npm install and npm ci).

The check is skipped during npm publish and npm pack, because semantic-release bundles its own npm (@semantic-release/npm depends on npm@^11.6.2) and runs the publish with that version rather than the one installed in CI.

About

Retries the given function using a backoff algorithm.

Topics

Resources

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages