All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.reactive.container.ReactQueue.scala Maven / Gradle / Ivy

The newest version!
package scala.reactive
package container



import scala.collection._
import scala.annotation.implicitNotFound



trait ReactQueue[@spec(Int, Long, Double) T] extends ReactContainer[T] {

  def enqueue(elem: T): Unit

  def dequeue(): T

  def head: T

}


object ReactQueue {

  def apply[@spec(Int, Long, Double) T: Arrayable]() = new ReactUnrolledQueue[T]

  trait Lifted[@spec(Int, Long, Double) T] extends ReactContainer.Lifted[T] {
    val container: ReactQueue[T]
    def head: Reactive[T]
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy