Skip to content

v2.1.0

Compare
Choose a tag to compare
@havelessbemore havelessbemore released this 13 Jun 14:43
· 34 commits to main since this release

What's New

Introduces synchronous method versions.

  • Sync methods use Atomics.wait, which may not be allowed on the main thread in a browser environment. In these cases, their existing async versions (e.g. lockSync -> lock) should be used.

  • Interfaces:

    • SyncBasicLockable
    • SyncLockable
    • SyncTimedLockable
  • Classes:

    • Mutex now extends SyncLockable.
    • RecursiveMutex now extends SyncLockable.
    • RecursiveTimedMutex now extends SyncTimedLockable.
    • TimedMutex now extends SyncTimedLockable.
    • UniqueLock now extends SyncTimedLockable.
  • Utilities:

    • lockGuardSync

Misc

New Contributors

Full Changelog: v2.0.7...v2.1.0