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

sttp.client4.internal.ws.SimpleQueue.scala Maven / Gradle / Ivy

The newest version!
package sttp.client4.internal.ws

trait SimpleQueue[F[_], T] {

  /** Eagerly adds the given item to the queue.
    */
  def offer(t: T): Unit

  /** Takes an element from the queue or suspends, until one is available. May be eager or lazy, depending on `F`.
    */
  def poll: F[T]
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy