Skip to content

Commit 4eb4335

Browse files
committed
Fix asyncronous/syncronous typos
1 parent 7376604 commit 4eb4335

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ php artisan operations:make <operation_name> -e|--essential // create file witho
4949
```shell
5050
php artisan operations:process // process all new operation files
5151

52-
php artisan operations:process --sync // force syncronously execution
53-
php artisan operations:process --async // force asyncronously execution
52+
php artisan operations:process --sync // force synchronous execution
53+
php artisan operations:process --async // force asynchronous execution
5454
php artisan operations:process --test // dont flag operations as processed
5555
php artisan operations:process --isolated // run command isolated
5656

@@ -134,7 +134,7 @@ use TimoKoerber\LaravelOneTimeOperations\OneTimeOperation;
134134
return new class extends OneTimeOperation
135135
{
136136
/**
137-
* Determine if the operation is being processed asyncronously.
137+
* Determine if the operation is being processed asynchronously.
138138
*/
139139
protected bool $async = true;
140140

@@ -170,13 +170,13 @@ public function process(): void
170170
}
171171
```
172172

173-
By default, the operation is being processed ***asyncronously*** (based on your configuration) by dispatching the job `OneTimeOperationProcessJob`.
173+
By default, the operation is being processed ***asynchronously*** (based on your configuration) by dispatching the job `OneTimeOperationProcessJob`.
174174
By default, the operation is being dispatched to the `default` queue of your project. Change the `$queue` as you wish.
175175

176-
You can also execute the code syncronously by setting the `$async` flag to `false`.
176+
You can also execute the code synchronously by setting the `$async` flag to `false`.
177177
_(this is only recommended for small operations, since the processing of these operations should be part of the deployment process)_
178178

179-
**Hint:** If you use syncronous processing, the `$queue` attribute will be ignored (duh!).
179+
**Hint:** If you use synchronous processing, the `$queue` attribute will be ignored (duh!).
180180

181181
### Create a cleaner operation file
182182

@@ -205,19 +205,19 @@ Your code will be executed, and you will find all the processed operations in th
205205

206206
After that, this operation will not be processed anymore.
207207

208-
### Dispatching Jobs syncronously or asyncronously
208+
### Dispatching Jobs synchronously or asynchronously
209209

210210
For each operation a `OneTimeOperationProcessJob` is being dispatched,
211211
either with `dispatch()` oder `dispatchSync()` based on the `$async` attribute in the operation file.
212212

213-
By providing the `--sync` or `--async` option with the `operations:process` command, you can force a syncronously/asyncronously execution and ignore the attribute:
213+
By providing the `--sync` or `--async` option with the `operations:process` command, you can force a synchronously/asynchronously execution and ignore the attribute:
214214

215215
```shell
216216
php artisan operations:process --async // force dispatch()
217217
php artisan operations:process --sync // force dispatchSync()
218218
```
219219

220-
**Hint!** If `operation:process` is part of your deployment process, it is **not recommended** to process the operations syncronously,
220+
**Hint!** If `operation:process` is part of your deployment process, it is **not recommended** to process the operations synchronously,
221221
since an error in your operation could make your whole deployment fail.
222222

223223
### Force different queue for all operations

src/OneTimeOperation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
abstract class OneTimeOperation
66
{
77
/**
8-
* Determine if the operation is being processed asyncronously.
8+
* Determine if the operation is being processed asynchronously.
99
*/
1010
protected bool $async = true;
1111

stubs/one-time-operation.stub

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use TimoKoerber\LaravelOneTimeOperations\OneTimeOperation;
55
return new class extends OneTimeOperation
66
{
77
/**
8-
* Determine if the operation is being processed asyncronously.
8+
* Determine if the operation is being processed asynchronously.
99
*/
1010
protected bool $async = true;
1111

tests/resources/xxxx_xx_xx_xxxxxx_foo_bar.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
return new class extends OneTimeOperation
66
{
77
/**
8-
* Determine if the operation is being processed asyncronously.
8+
* Determine if the operation is being processed asynchronously.
99
*
1010
* @return bool
1111
*/

tests/resources/xxxx_xx_xx_xxxxxx_narf_puit.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
return new class extends OneTimeOperation
66
{
77
/**
8-
* Determine if the operation is being processed asyncronously.
8+
* Determine if the operation is being processed asynchronously.
99
*
1010
* @return bool
1111
*/

0 commit comments

Comments
 (0)