Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 274afb9

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Scheduler] Some fixes in code samples
2 parents 529ba62 + 3df68a7 commit 274afb9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

scheduler.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ what it missed::
328328
return $this->schedule ??= (new Schedule())
329329
->with(
330330
// ...
331-
);
331+
)
332332
->stateful($this->cache)
333333
}
334334
}
@@ -350,7 +350,7 @@ same task more than once::
350350
return $this->schedule ??= (new Schedule())
351351
->with(
352352
// ...
353-
);
353+
)
354354
->lock($this->lockFactory->createLock('my-lock')
355355
}
356356
}
@@ -375,7 +375,9 @@ before being further redispatched to its corresponding handler::
375375
public function getSchedule(): Schedule
376376
{
377377
return $this->schedule ??= (new Schedule())
378-
->with(RecurringMessage::every('5 seconds'), new RedispatchMessage(new Message(), 'async'))
378+
->with(
379+
RecurringMessage::every('5 seconds'),
380+
new RedispatchMessage(new Message(), 'async')
379381
);
380382
}
381383
}

0 commit comments

Comments
 (0)