Skip to content

Commit e8cc2ce

Browse files
committed
ICM: Mutex timeout readme info added.
1 parent 9d0ce92 commit e8cc2ce

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Prevents overlapping for Laravel console commands.
1919
- [Usage](#usage)
2020
- [Strategies](#strategies)
2121
- [Advanced](#advanced)
22-
- [Common mutex for several commands](#common-mutex-for-several-commands)
23-
- [Custom mutex timeout](#custom-mutex-timeout)
22+
- [Common mutexes](#common-mutexes)
23+
- [Mutex timeout](#mutex-timeout)
2424
- [Troubleshooting](#troubleshooting)
2525
- [Trait included, but nothing happens?](#trait-included-but-nothing-happens)
2626
- [Several traits conflict?](#several-traits-conflict)
@@ -100,7 +100,7 @@ class MyProtectedCommand extends Command
100100

101101
## Advanced
102102

103-
### Common mutex for several commands
103+
### Common mutexes
104104

105105
Sometimes it is useful to set common mutex for a several commands. You can easily achieve this by setting them the same mutex name.
106106
By default, mutex name is generated based on a command's name and arguments. To change this, just override `getMutexName` method in your command:
@@ -119,7 +119,7 @@ class MyProtectedCommand extends Command
119119
}
120120
```
121121
122-
### Custom mutex timeout
122+
### Mutex timeout
123123
124124
By default mutex is checking for a running command, and if it finds such - it just exits. However, you can manually set
125125
required timeout for a mutex, so it can wait for another instance to finish it's execution, instead of just quiting immediately.

0 commit comments

Comments
 (0)