trait
Isolate[T] extends ReactRecord
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Isolate[T], B)
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
-
final
def
channel: Channel[T]
-
def
clone(): AnyRef
-
def
ensuring(cond: (Isolate[T]) ⇒ Boolean, msg: ⇒ Any): Isolate[T]
-
def
ensuring(cond: (Isolate[T]) ⇒ Boolean): Isolate[T]
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Isolate[T]
-
def
ensuring(cond: Boolean): Isolate[T]
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
onMutated(): Unit
-
-
-
final
def
source: Reactive[T]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
-
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (Isolate[T], B)
Shadowed Implicit Value Members
-
val
self: Any
-
val
self: Any
Inherited from Any
Inherited by implicit conversion any2stringadd from
Isolate[T] to StringAdd
Inherited by implicit conversion any2stringfmt from
Isolate[T] to StringFormat
Inherited by implicit conversion any2ArrowAssoc from
Isolate[T] to ArrowAssoc[Isolate[T]]
Inherited by implicit conversion any2Ensuring from
Isolate[T] to Ensuring[Isolate[T]]
An isolated, independent event propagation context.
An
Isolate[T]
object accepts events of typeT
on its input channel. One isolate can propagate events concurrently to other isolates -- it is a basic element of concurrency. Reactive values cannot be shared between isolates -- it is an error to use a reactive value originating in one isolate in some different isolate.Isolates are defined by extending the
Isolate
trait. The events passed to isolates can be subscribed to using theirsource
reactive. Here is an example:Separate isolate instances that exist at runtime are created using isolate systems. The
isolate
method in the isolate system requires a scheduler to execute the isolate. Here is an example:Creating an isolate returns its channel. Reactives can be attached to channels to propagate their events to isolates.
To stop an isolate, its channel needs to be sealed, and all the previously attached reactives need to be closed.
Isolates also receive special
SysEvent
s on thesysEvents
reactive. If a subscription on thesource
reactive throws a non-fatal exception, the exception is emitted on thefailures
reactive.the type of the events this isolate produces