Skip to content

Commit

Permalink
document GroupedWithin
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Sep 20, 2024
1 parent 20832c4 commit 26e98dc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/scala/util/GroupedWithin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ import org.apache.pekko.actor.typed.Scheduler

import scala.collection.immutable.VectorBuilder

/** Group elements into a fixed-sized buffer. The elements are emitted when the buffer is full, or
* periodically after a fixed time interval.
*/
final class GroupedWithin()(using Scheduler, Executor):

def apply[A](nb: Int, interval: FiniteDuration)(emit: Emit[Vector[A]]) =
Expand Down

0 comments on commit 26e98dc

Please sign in to comment.