function-queue
is a collection of classes for queueing up execution of functions in Scala.
Allows you to add functions to a queue which is then executed sequentially in Future
s.
val asyncFunctionQueue = new AsyncFunctionQueue()
asyncFunctionQueue.add {
println("Hello world")
}
Similar to AsyncFunctionQueue
, but the functions added must have a unique key to be accepted into the queue.
val asyncUniqueFunctionQueue = new AsyncUniqueFunctionQueue[String]()
asyncUniqueFunctionQueue.add("1") {
println("Hello world")
}