Skip to content

Commit

Permalink
Bump
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Sep 2, 2024
1 parent 8041a2b commit 4b234c6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 14 deletions.
8 changes: 4 additions & 4 deletions src/FileMutex.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

/**
* 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
{
Expand Down
9 changes: 5 additions & 4 deletions src/KeyedFileMutex.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@
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
{
Expand Down
7 changes: 4 additions & 3 deletions src/KeyedLockingFileMutex.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@
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.
*/

Expand Down
6 changes: 3 additions & 3 deletions src/LockingFileMutex.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@

/**
* 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
Expand Down

0 comments on commit 4b234c6

Please sign in to comment.