Skip to content

v2.2.0

Latest
Compare
Choose a tag to compare
@havelessbemore havelessbemore released this 17 Jun 20:08
· 22 commits to main since this release

What's New

  1. Adds the static ByteLength class property, which represents
    the amount of memory in bytes required by the class.

    new Mutex(new SharedArrayBuffer(Mutex.ByteLength));

    Updated classes include:

    • ConditionVariable
    • CountingSemaphore
    • Latch
    • Mutex
    • OnceFlag
    • RecursiveMutex
    • SharedMutex
    • SharedTimedMutex
    • TimedMutex
  2. Adds bitOffset validation to OnceFlag. Invalid values
    now throw a RangeError (e.g. when < 0 or >= 32).

Full Changelog: v2.1.0...v2.2.0