object Processor
- Alphabetic
- By Inheritance
- Processor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- final case class Aborted() extends RuntimeException with Product with Serializable
Processors can throw this exception to signalize abortion.
- trait Body extends AnyRef
- trait Prepared extends AnyRef
- final case class Progress[Prod, Repr](processor: Repr, amount: Double) extends Update[Nothing, Repr] with Product with Serializable
An update indicating the process has progressed.
An update indicating the process has progressed.
- processor
the processor that dispatched the update
- amount
the current progression between 0.0 and 1.0
- final case class Result[Prod, Repr](processor: Repr, value: Try[Prod]) extends Update[Prod, Repr] with Product with Serializable
An update indicating that the process has terminated.
An update indicating that the process has terminated.
- processor
the processor that dispatched the update
- value
the result which is either a
Successor aFailure
- sealed trait Update[+Prod, +Repr] extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def apply[A](name: ⇒ String)(fun: (Processor[A] with Body) ⇒ A)(implicit exec: ExecutionContext): Processor[A]
Creates an ad-hoc processor from a giving body function.
Creates an ad-hoc processor from a giving body function. The function is passed the resulting processor and should make use of
checkAbortedandprogress.- name
the name is purely informative and will be used for the processor's
toStringmethod
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.CloneNotSupportedException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromFuture[A](name: String, future: Future[A])(implicit exec: ExecutionContext): Processor[A]
Wraps an existing future in the
Processorinterface.Wraps an existing future in the
Processorinterface. The returned processor will not be able to react toabortcalls, and theprogresswill be reported as zero until the future completes.- name
the name is purely informative and will be used for the processor's
toStringmethod
- def fromProcess(name: String, process: Process)(implicit exec: ExecutionContext): Processor[Int]
Wraps an existing shell process in the
Processorinterface.Wraps an existing shell process in the
Processorinterface. The returned processor will evaluate to the process' exit value. Callingabortwill destroy the process.- name
the name is purely informative and will be used for the processor's
toStringmethod
- final def getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws(classOf[java.lang.InterruptedException])