Skip to content

Kemichal/function-queue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

function-queue Scaladex License

function-queue is a collection of classes for queueing up execution of functions in Scala.

AsyncFunctionQueue

Allows you to add functions to a queue which is then executed sequentially in Futures.

val asyncFunctionQueue = new AsyncFunctionQueue()
asyncFunctionQueue.add {
  println("Hello world")
}

AsyncUniqueFunctionQueue

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")
}

About

Run Scala functions in a queue

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages