Skip to content

Commit

Permalink
debouncer takes a Runnable, 11.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Dec 10, 2024
1 parent 0cce6ae commit 2d3dd39
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ inThisBuild(
Seq(
scalaVersion := "3.5.2",
versionScheme := Some("early-semver"),
version := "11.4.0",
version := "11.4.1",
organization := "org.lichess",
licenses += ("MIT" -> url("https://opensource.org/licenses/MIT")),
publishTo := Option(Resolver.file("file", new File(sys.props.getOrElse("publishTo", ""))))
Expand Down
2 changes: 1 addition & 1 deletion lila/src/main/scala/Debouncer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import scala.concurrent.ExecutionContext
* and `f(id)` is called at most once every `duration`.
* It is guaranteed that `f(id)` will run after the last `push(id)`. */
final class Debouncer[Id](
scheduleOnce: (() => Unit) => Unit, // scheduler.scheduleOnce(duration) _
scheduleOnce: Runnable => Unit, // scheduler.scheduleOnce(duration, _)
initialCapacity: Int = 64
)(
f: Id => Unit
Expand Down

0 comments on commit 2d3dd39

Please sign in to comment.