Method | Description | |
---|---|---|
__construct ( |
Sets the mutex. | |
setCheck ( callable $check ) | Sets the check. | |
then ( callable $code ) | Executes a code only if a check is true. |
public __construct ( |
||
$mutex | The mutex. |