diff --git a/src/FileMutex.php b/src/FileMutex.php index 3d40717..6c2a280 100644 --- a/src/FileMutex.php +++ b/src/FileMutex.php @@ -10,10 +10,10 @@ use function Amp\delay; /** * Async mutex based on files. - * - * A crash of the program will NOT release the lock, manual user action will be required to remove the lockfile. - * - * For a mutex that will automatically release the lock in case of a crash, see LockingFileMutex. + * + * A crash of the program will NOT release the lock, manual user action will be required to remove the lockfile. + * + * For a mutex that will automatically release the lock in case of a crash, see LockingFileMutex. */ final class FileMutex implements Mutex { diff --git a/src/KeyedFileMutex.php b/src/KeyedFileMutex.php index ce6b7a6..8e82d51 100644 --- a/src/KeyedFileMutex.php +++ b/src/KeyedFileMutex.php @@ -7,12 +7,13 @@ use Amp\Sync\KeyedMutex; use Amp\Sync\Lock; use Amp\Sync\SyncException; use function Amp\delay; + /** * Asynckeyed mutex based on files. - * - * A crash of the program will NOT release the lock, manual user action will be required to remove the lockfile. - * - * For a mutex that will automatically release the lock in case of a crash, see KeyedLockingFileMutex. + * + * A crash of the program will NOT release the lock, manual user action will be required to remove the lockfile. + * + * For a mutex that will automatically release the lock in case of a crash, see KeyedLockingFileMutex. */ final class KeyedFileMutex implements KeyedMutex { diff --git a/src/KeyedLockingFileMutex.php b/src/KeyedLockingFileMutex.php index e50e3e2..33a692f 100644 --- a/src/KeyedLockingFileMutex.php +++ b/src/KeyedLockingFileMutex.php @@ -7,11 +7,12 @@ use Amp\Sync\KeyedMutex; use Amp\Sync\Lock; use Amp\Sync\SyncException; use function Amp\delay; + /** * Async keyed mutex based on flock. - * - * A crash of the program will automatically release the lock, but the lockfiles will never be removed from the filesystem (even in case of successful release). - * + * + * A crash of the program will automatically release the lock, but the lockfiles will never be removed from the filesystem (even in case of successful release). + * * For a mutex that removes the lockfiles but does not release the lock in case of a crash (requiring manual user action to clean up), see KeyedFileMutex. */ diff --git a/src/LockingFileMutex.php b/src/LockingFileMutex.php index c86c1df..0384c7a 100644 --- a/src/LockingFileMutex.php +++ b/src/LockingFileMutex.php @@ -10,9 +10,9 @@ use function Amp\delay; /** * Async mutex based on flock. - * - * A crash of the program will automatically release the lock, but the lockfiles will never be removed from the filesystem (even in case of successful release). - * + * + * A crash of the program will automatically release the lock, but the lockfiles will never be removed from the filesystem (even in case of successful release). + * * For a mutex that removes the lockfiles but does not release the lock in case of a crash (requiring manual user action to clean up), see FileMutex. */ final class LockingFileMutex implements Mutex