Amphp Sync Versions Save

Non-blocking synchronization primitives for PHP based on Amp and Revolt.

v1.4.1

2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/amphp/sync/compare/v1.4.0...v1.4.1

v1.4.0

4 years ago
  • Added Amp\Sync\Barrier
  • Added Amp\Sync\ConcurrentIterator\transform()
  • Added Amp\Sync\ConcurrentIterator\map()
  • Added Amp\Sync\ConcurrentIterator\filter()
  • Added Amp\Sync\ConcurrentIterator\each()

v1.3.0

4 years ago
  • Added KeyedSemaphore
  • Added LocalKeyedSemaphore
  • Added PrefixedKeyedSemaphore
  • Mutex extends Semaphore now as a Mutex is a special form of Semaphore with exactly one lock

v1.2.0

4 years ago
  • Added LocalKeyedMutex

v1.1.0

4 years ago
  • Added KeyedMutex
  • Added PrefixedKeyedMutex
  • Added StaticKeyMutex
  • Deprecated ThreadedMutex because ext-pthreads development halted (see krakjoe/pthreads#929)
  • Deprecated ThreadedSemaphore because ext-pthreads development halted (see krakjoe/pthreads#929)
  • Raised requirement to PHP 7.1

v1.0.1

6 years ago

Removed usage of anonymous class in ThreadedMutex and ThreadedSemaphore, instead both now use an internal pre-defined class. Anonymous classes cannot be transferred to a thread, so previously they could not actually be used in a thread as intended… oops…

v1.0.0

6 years ago

Initial release.