1.0.5 • Published 7 months ago

@hlobka/async-time-unit v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
7 months ago

async-time-unit

async-time-unit - is a simple lib with async time units and duration accessibility.

Installation:

As a dependency in your npm package:

  • npm install @hlobka/async-time-unit

Examples:

  • Awaiter in 10 seconds:
    • await promiseDelay(10, TimeUnit.sec);
    • await TimeUnit.sec.await(10)
    • await Duration.sec(10).await();
  • Awaiter till something happened:
    • Await in 1 minute till element appears with interval to check in 100 mls:
      • await promise.in(Duration.min(1)).tobe(() => document.getElementById("id") != null, Duration.mls(100))
1.0.5

7 months ago

1.0.4

7 months ago

1.0.1

7 months ago

1.0.2

7 months ago