AsyncResource

trait AsyncResource[T <: Txn[T]] extends Processor[Any] with Disposable[T]
Companion
object
trait Disposable[T]
trait Processor[Any]
trait ProcessorLike[Any, Processor[Any]]
trait Model[Update[Any, Processor[Any]]]
trait Future[Any]
trait Awaitable[Any]
class Object
trait Matchable
class Any
trait BufferPrepare[T]

Value members

Abstract methods

def install(b: AuralNode[T])(implicit tx: T): Unit

Inherited methods

def abort(): Unit

Asynchronously aborts the process. This method returns immediately. Once the process is aborted, it will dispatch an Aborted event. This method may be called repeatedly, although calling it twice does not have any particular effect.

Asynchronously aborts the process. This method returns immediately. Once the process is aborted, it will dispatch an Aborted event. This method may be called repeatedly, although calling it twice does not have any particular effect.

Inherited from
ProcessorLike
def addListener(pf: Listener[Update[Any, Processor[Any]]]): pf

Registers a listener for updates from the model. A listener is simply a partial function which receives instances of U. Therefore the listener can decide with pattern match cases which updates it wants to handle.

Registers a listener for updates from the model. A listener is simply a partial function which receives instances of U. Therefore the listener can decide with pattern match cases which updates it wants to handle.

Example:

 m.addListener {
   case NcviewSync.Open(path) => ...
 }

Note: If the listener should be removed at some point, it is important to store it somewhere:

 val l: NcviewSync.Listener = { case NcviewSync.Open(path) => ... }
 m.addListener(l)
 ...
 m.removeListener(l)
Inherited from
Model
def andThen[U](pf: PartialFunction[Try[Any], U])(implicit executor: ExecutionContext): Future[Any]
Inherited from
Future
def collect[S](pf: PartialFunction[Any, S])(implicit executor: ExecutionContext): Future[S]
Inherited from
Future
def dispose()(implicit tx: T): Unit
Inherited from
Disposable
def failed: Future[Throwable]
Inherited from
Future
def fallbackTo[U >: Any](that: Future[U]): Future[U]
Inherited from
Future
def filter(p: Any => Boolean)(implicit executor: ExecutionContext): Future[Any]
Inherited from
Future
def flatMap[S](f: Any => Future[S])(implicit executor: ExecutionContext): Future[S]
Inherited from
Future
def flatten[S](implicit ev: Any <:< Future[S]): Future[S]
Inherited from
Future
def foreach[U](f: Any => U)(implicit executor: ExecutionContext): Unit
Inherited from
Future
def isCompleted: Boolean
Inherited from
Future
def map[S](f: Any => S)(implicit executor: ExecutionContext): Future[S]
Inherited from
Future
def mapTo[S](implicit tag: ClassTag[S]): Future[S]
Inherited from
Future
def onComplete[U](f: Try[Any] => U)(implicit executor: ExecutionContext): Unit
Inherited from
Future
def progress: Double

Queries the correct progress which is value between 0.0 and 1.0

Queries the correct progress which is value between 0.0 and 1.0

Inherited from
ProcessorLike
@throws(classOf[InterruptedException]) @throws(classOf[scala.concurrent.TimeoutException])
def ready(atMost: Duration)(implicit permit: CanAwait): AsyncResource[T]
Inherited from
Awaitable
def recover[U >: Any](pf: PartialFunction[Throwable, U])(implicit executor: ExecutionContext): Future[U]
Inherited from
Future
def recoverWith[U >: Any](pf: PartialFunction[Throwable, Future[U]])(implicit executor: ExecutionContext): Future[U]
Inherited from
Future
def removeListener(pf: Listener[Update[Any, Processor[Any]]]): Unit

Un-registers a listener for updates from the model.

Un-registers a listener for updates from the model.

Inherited from
Model
@throws(classOf[InterruptedException]) @throws(classOf[scala.concurrent.TimeoutException])
def result(atMost: Duration)(implicit permit: CanAwait): Any
Inherited from
Awaitable
def transform[S](f: Try[Any] => Try[S])(implicit executor: ExecutionContext): Future[S]
Inherited from
Future
def transform[S](s: Any => S, f: Throwable => Throwable)(implicit executor: ExecutionContext): Future[S]
Inherited from
Future
def transformWith[S](f: Try[Any] => Future[S])(implicit executor: ExecutionContext): Future[S]
Inherited from
Future
def value: Option[Try[Any]]
Inherited from
Future
final
def withFilter(p: Any => Boolean)(implicit executor: ExecutionContext): Future[Any]
Inherited from
Future
def zip[U](that: Future[U]): Future[(Any, U)]
Inherited from
Future
def zipWith[U, R](that: Future[U])(f: (Any, U) => R)(implicit executor: ExecutionContext): Future[R]
Inherited from
Future