1.2.0 • Published 3 years ago

aforwait v1.2.0

Weekly downloads
32
License
ISC
Repository
github
Last release
3 years ago

HEy Wait...:

.. .. .. .. .. you see.. promise

and async function is actually a promise

soo.. you the code will promise he would wait as much as you want (even for infinity)

Here is how you use it:

const {
    aforSec,
    aforMin,
    aforInfinit,
    aforDays,
    aforHours,
    aforYears,
    aforDecades
} = require("aforwait");


(async () => {

    console.log("i'm gonna wait 5 seconds and then tell you yee")
    await afor(5000) // await aforSec(5);
    console.log("yee")

})()
import {
    aforSec,
    aforMin,
    aforInfinit,
    aforDays,
    aforHours,
    aforYears,
    aforDecades} from "aforwait";
// or 
import afor from "aforwait"

(async () => {

    console.log("i'm gonna wait 5 seconds and then tell you yee")
    await afor(5000) // await aforSec(5);
    console.log("yee")

})()

simple huh...

enjoy :>

1.2.0

3 years ago

1.1.11

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago