Documentation Packages Getting Started FAQ Support

Sync ⋅ Synchronization Tools

This package defines synchronization primitives for PHP applications and libraries using Amp, such as locks, semaphores and concurrency limited iterator operations.


This package can be installed as a Composer dependency.

composer require amphp/sync


See Mutex, Semaphore, and concurrent iteration.