gears.async.listeners

Members list

Type members

Classlikes

case class ConflictingLocksException(listeners: (Listener[_], Listener[_])) extends Exception

Two listeners being locked at the same time, while having the same lock number.

Two listeners being locked at the same time, while having the same lock number.

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Value members

Concrete methods

def lockBoth[T, U](lt: Listener[T], lu: Listener[U]): lt.type | lu.type | true

Attempt to lock both listeners belonging to possibly different sources at the same time. Lock orders are respected by comparing numbers on every step.

Attempt to lock both listeners belonging to possibly different sources at the same time. Lock orders are respected by comparing numbers on every step.

Returns true on success, or the listener that fails first.

Attributes

Throws
ConflictingLocksException

In the case that two locks sharing the same number is encountered, this exception is thrown with the conflicting listeners.