gears.async.listeners
package 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 Producttrait Equalsclass Exceptionclass Throwabletrait Serializableclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
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.
In this article