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.

Installation

This package can be installed as a Composer dependency.

composer require amphp/sync

Usage

See Mutex, Semaphore, and concurrent iteration.