Commit Graph

  • b7f3249180
    Update README for a section on `Semaphore` (semaphore.js). master Avril 2022-02-14 19:05:28 +0000
  • 7b438a930f
    Merge branch 'allow-await-async-timeout-func' Avril 2022-02-14 18:38:38 +0000
  • d6f9ff7817
    AsyncTimeout: Now handles async functions for `thing` correctly. Improved `timeout_example(_timeout, cancel)` (+ `Cancellation` class for async cancellations). Added `try_example(time)` which runs the default example and cancels after `time`, returning the value or error in an object containing either `{ value: true }` or `{ error: <caught error> }` when awaited. allow-await-async-timeout-func Avril 2022-02-14 18:36:46 +0000
  • 0d9f2adb04
    Semaphore: Added `try_acquire()`, `try_using()` (see docs). Added `bind_using(func)` to returned a bound function of `func` to `this.using`. Avril 2022-02-13 17:32:12 +0000
  • 77926dd1f9
    Semaphore: Added `try_acquire()`, `try_using()` (see docs). Added `bind_using(func)` to returned a bound function of `func` to `this.using`. Avril 2022-02-13 17:30:43 +0000
  • b2070f1918
    Semaphore: Better example function. Changed `Semaphore.Mutex()` -> `Semaphore.mutex()` to avoid class naming convention confusion. Avril 2022-02-13 16:18:08 +0000
  • caad3ce5b6
    Merged `Semaphore` from master Avril 2022-02-12 21:08:06 +0000
  • d54a5e8f51 Uhh, fixed semaphore. It works now. Avril 2022-02-12 21:06:39 +0000
  • 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!??!?!?!??!???!??!??!?!?!?!? Avril 2022-02-12 21:01:36 +0000
  • bc64ae9232
    semaphore attampt 1: failure Avril 2022-02-12 18:51:02 +0000
  • 4f9c541715
    Changed `exmaple()` to `console.log()` instead of `alert()`. Avril 2022-02-12 15:56:13 +0000
  • ed32e1586b
    Changed `exmaple()` to `console.log()` instead of `alert()`. Avril 2022-02-12 15:54:39 +0000
  • e58db0b0b9
    Fix syntax error Avril 2022-02-12 15:53:32 +0000
  • 881be9a6e7
    Fix syntax error Avril 2022-02-12 15:53:07 +0000
  • e01d0d8534
    Update README Avril 2022-02-11 21:21:16 +0000
  • 05daa18891
    Update README Avril 2022-02-11 21:20:57 +0000
  • f9f85f36e1
    Failed attempt at allowing async functions to be passed as `thing`: This will need a complete redesign to support this and I don"t care enough right now to do it. Avril 2022-02-11 21:07:48 +0000
  • 66a5c7cc05
    Initial commit Avril 2022-02-11 20:56:18 +0000