Avril
b2070f1918
Semaphore: Better example function. Changed `Semaphore.Mutex()` -> `Semaphore.mutex()` to avoid class naming convention confusion.
...
Fortune for async-timeout-js's current commit: Small blessing − 小吉
3 years ago
Avril
d54a5e8f51
Uhh, fixed semaphore. It works now.
...
I forgot to actually return the promise in the `next.acquire()` lambda lmao.
Fortune for async-timeout-js's current commit: Half curse − 半凶
3 years ago
Avril
d151412576
WHY DOESN"T THIS FUKCINGA I STUPID THING WORK????? RESOLVE IS ***PROVEN*** TO ____NOT____ BE CALLED IN THE PROMISE CTOR SO WHY THE FUCK IS THAT PROMISE RESOLVING IMMEDIATELY!??!?!?!??!???!??!??!?!?!?!?
...
Fortune for async-timeout-js's current commit: Future blessing − 末吉
3 years ago
Avril
bc64ae9232
semaphore attampt 1: failure
...
Fortune for async-timeout-js's current commit: Curse − 凶
3 years ago
Avril
ed32e1586b
Changed `exmaple()` to `console.log()` instead of `alert()`.
...
Fortune for async-timeout-js's current commit: Future blessing − 末吉
3 years ago
Avril
881be9a6e7
Fix syntax error
...
Fortune for async-timeout-js's current commit: Blessing − 吉
3 years ago
Avril
05daa18891
Update README
...
Fortune for async-timeout-js's current commit: Small blessing − 小吉
3 years ago
Avril
66a5c7cc05
Initial commit
...
Added the `AsyncTimeout(func, delay)` class, with awaitable `timeout()` and `for await`able `interval()`.
Added documentation to the class
Added a `example()` function that can show how it works or how to use it.
Added README that has the title and what the file does.
Fortune for async-timeout-js's current commit: Great blessing − 大吉
3 years ago