Skip to content

Commit 4196270

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: [Scheduler] Some fixes in code samples
2 parents 77a60cd + 053274e commit 4196270

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
@@ -316,7 +316,7 @@ what it missed::
316316
return $this->schedule ??= (new Schedule())
317317
->with(
318318
// ...
319-
);
319+
)
320320
->stateful($this->cache)
321321
}
322322
}
@@ -338,7 +338,7 @@ same task more than once::
338338
return $this->schedule ??= (new Schedule())
339339
->with(
340340
// ...
341-
);
341+
)
342342
->lock($this->lockFactory->createLock('my-lock')
343343
}
344344
}
@@ -363,7 +363,9 @@ before being further redispatched to its corresponding handler::
363363
public function getSchedule(): Schedule
364364
{
365365
return $this->schedule ??= (new Schedule())
366-
->with(RecurringMessage::every('5 seconds'), new RedispatchMessage(new Message(), 'async'))
366+
->with(
367+
RecurringMessage::every('5 seconds'),
368+
new RedispatchMessage(new Message(), 'async')
367369
);
368370
}
369371
}

0 commit comments

Comments
 (0)