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

Skip to content

Commit 3df68a7

Browse files
committed
[Scheduler] Some fixes in code samples
1 parent 416201c commit 3df68a7

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
@@ -321,7 +321,7 @@ what it missed::
321321
return $this->schedule ??= (new Schedule())
322322
->with(
323323
// ...
324-
);
324+
)
325325
->stateful($this->cache)
326326
}
327327
}
@@ -343,7 +343,7 @@ same task more than once::
343343
return $this->schedule ??= (new Schedule())
344344
->with(
345345
// ...
346-
);
346+
)
347347
->lock($this->lockFactory->createLock('my-lock')
348348
}
349349
}
@@ -368,7 +368,9 @@ before being further redispatched to its corresponding handler::
368368
public function getSchedule(): Schedule
369369
{
370370
return $this->schedule ??= (new Schedule())
371-
->with(RecurringMessage::every('5 seconds'), new RedispatchMessage(new Message(), 'async'))
371+
->with(
372+
RecurringMessage::every('5 seconds'),
373+
new RedispatchMessage(new Message(), 'async')
372374
);
373375
}
374376
}

0 commit comments

Comments
 (0)