scala.concurrent

trait ManagedBlocker

[source: scala/concurrent/ManagedBlocker.scala]

trait ManagedBlocker
extends AnyRef
The ManagedBlocker trait...
Author
Philipp Haller
Method Summary
abstract def block : Boolean
Possibly blocks the current thread, for example waiting for a lock or condition.
abstract def isReleasable : Boolean
Returns true if blocking is unnecessary.
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
abstract def block : Boolean
Possibly blocks the current thread, for example waiting for a lock or condition.
Returns
true if no additional blocking is necessary (i.e., if isReleasable would return true).
Throws
InterruptedException - if interrupted while waiting (the method is not required to do so, but is allowed to).

abstract def isReleasable : Boolean
Returns true if blocking is unnecessary.