Skip to content

Commit

Permalink
feat+fix: change default lock time INF to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
kocoten1992 committed Aug 16, 2023
1 parent c084edf commit ba87dd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mutex.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct(string $lock_name)
}

public function lock(
float $timeout = INF /* microseconds */
float $timeout = 0 /* microseconds */
): bool {
$timepass = 0;

Expand Down

0 comments on commit ba87dd3

Please sign in to comment.