Releases: utopia-php/lock
Releases · utopia-php/lock
0.2.3
- refactor: apply baseline rector to packages that lacked a config
- build: hoist baseline rector + phpstan configs to the root
0.2.2
- refactor(monorepo): simplify absorb/sync flows (-635 LoC)
- Pin all workflow actions to SHAs with ratchet, enforce in CI
0.2.1
First release cut from the utopia-php monorepo.
0.2.0
What's New
-
Breaking: lock classes moved from
Utopia\Lock\Lock\*toUtopia\Lock\*.
Users on 0.1.0 must update imports:Utopia\Lock\Lock\Mutex→Utopia\Lock\MutexUtopia\Lock\Lock\Semaphore→Utopia\Lock\SemaphoreUtopia\Lock\Lock\File→Utopia\Lock\FileUtopia\Lock\Lock\Distributed→Utopia\Lock\Distributed
The
Utopia\Lock\Lockinterface andUtopia\Lock\Exceptionhierarchy are unchanged.
0.1.0
What's New
Initial release.
Utopia\Lock\Lockinterface withacquire,tryAcquire,release,withLock.Utopia\Lock\Lock\Mutex— Swoole coroutine mutex backed bySwoole\Coroutine\Channel(1).Utopia\Lock\Lock\Semaphore— Swoole coroutine semaphore with a configurable permit count.Utopia\Lock\Lock\File—flock()based file lock (LOCK_EXorLOCK_SH), cooperates with Swoole's runtime hooks.Utopia\Lock\Lock\Distributed— RedisSET NX EXlock with Lua-atomic release and refresh, fractional-second timeouts, optional logger.Utopia\Lock\Exceptionbase exception andUtopia\Lock\Exception\Contentionthrown whenwithLocktimes out.