New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@ssts/wait

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ssts/wait

Promise wait | Good for development.

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

Promise wait | Good for development.

One straight forward function that waits | Good for development purposes 😍

Install

npm i -D @ssts/wait

Import

import seniorWAIT from "@ssts/wait";

Use

async function handleSomething(): Promise<void> {
  await seniorWAIT(1000);   // in milliseconds
}

Arguments

Returns Promise<void>

OrderParameterTypeDefault
1durationnumber5000 (ms)

Example

import seniorWAIT from "@ssts/wait";

const handleSomething = async (): Promise<void> => {
  try {
    console.log("waiting started");
    await seniorWAIT(2000);   // in milliseconds (2 seconds)
    console.log("waiting done");
    
    await doSomething();

  } catch (error) {
    console.error(error);
  }
}





Made With Chocolate By Senior Sedo 😎

Be Chocolateful 💙😍

ssts stands for senior-sedo-typescript 💙

So instead of @senior-sedo-typescript/promise-wait

@ssts/wait for simplicity sake 😍






Keywords

FAQs

Package last updated on 25 Jun 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc