Semaphore

turbolift.io.Semaphore
See theSemaphore companion object
sealed trait Semaphore

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def unsafeRelease(count: Long): Unit
def unsafeTryAcquire(count: Long): Boolean

Concrete methods

final def acquire(count: Long): Computation[Unit, IO]
final def release(count: Long): Computation[Unit, IO]
final def tryAcquire(count: Long): Computation[Boolean, IO]
final def tryUse[A, U <: IO](count: Long)(body: Computation[A, U]): Computation[Option[A], U]
final def use[A, U <: IO](count: Long)(body: Computation[A, U]): Computation[A, U]