Skip to content

Commit

Permalink
Merge branch '7.0' into 7.1
Browse files Browse the repository at this point in the history
* 7.0:
  Remove the shouldFlush() method
  use a custom batch size
  • Loading branch information
javiereguiluz committed Jul 19, 2024
2 parents c03a8b0 + e2b4fe4 commit 5f34920
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions messenger.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2583,15 +2583,8 @@ provided in order to ease the declaration of these special handlers::
}
}

// Optionally, you can either redefine the `shouldFlush()` method
// of the trait to define your own batch size...
private function shouldFlush(): bool
{
return $this->getBatchSize() <= \count($this->jobs);
}

// ... or redefine the `getBatchSize()` method if the default
// flush behavior suits your needs
// Optionally, you can override some of the trait methods, such as the
// `getBatchSize()` method, to specify your own batch size...
private function getBatchSize(): int
{
return 100;
Expand Down

0 comments on commit 5f34920

Please sign in to comment.