scala.concurrent

ManagedBlocker

trait ManagedBlocker extends AnyRef

The ManagedBlocker trait...

Source
ManagedBlocker.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. ManagedBlocker
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def block(): Boolean

    Possibly blocks the current thread, for example waiting for a lock or condition.

    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).

    Exceptions thrown
    InterruptedException

    if interrupted while waiting (the method is not required to do so, but is allowed to).

  2. abstract def isReleasable: Boolean

    Returns true if blocking is unnecessary.