Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gamestdio/timer

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gamestdio/timer - npm Package Versions

1.4.2

Diff

endel
published 1.4.1 •

endel
published 1.4.0 •

Changelog

Source

1.4.0

Minor Changes

  • 9975b29: Add a new async scheduling function duration for usage with async functions.

    Inside an async function

    const timer = new Clock(true);
    await timer.duration(1000);
    console.log("1 second later");
    

    Using the promise

    const timer = new Clock(true);
    timer.duration(1000).then(() => console.log("1 second later"));
    

    Using the promise with error

    const timer = new Clock(true);
    timer
      .duration(1000)
      .then(() => console.log("1 second later"))
      .catch(() => console.log("Timer cleared"));
    timer.clear();
    
endel
published 1.3.2 •

endel
published 1.3.1 •

endel
published 1.3.0 •

endel
published 1.2.0 •

endel
published 1.1.9 •

endel
published 1.1.8 •

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