Used for recover failed instances
Used for recover failed instances
provide syntax for running select loop as async operation.
provide syntax for running select loop as async operation.
val receiver = gopherApi.select.forever{ case x: channel.read => Console.println(s"received:$x") }
copyState from previous instance when transputer is restarted.
copyState from previous instance when transputer is restarted. can be overriden in subclasses (by default: do nothing)
Note, that port connection is restored before call of copyState
provide syntax for running select loop inside go (or async) block example of usage:
provide syntax for running select loop inside go (or async) block example of usage:
go { ..... for(s <- gopherApi.select.forever) s match { case x: ch1.read => do something with x case q: chq.read => implicitly[FlowTermination[Unit]].doExit(()) case y: ch2.write if (y=expr) => do something with y case _ => do somethig when idle. }
Note, that you can use implicit instance of [FlowTermination[Unit]] to stop loop.
configure loop in selector
called when failure is escalated.
called when failure is escalated.
called when transducer is choose resume durign recovery.
called when transducer is choose resume durign recovery.
called when transputer is stopped.
called when transputer is stopped.
set recover function
set recover function
When called inside loop - stop execution of selector, from outside - terminate transformer
Transputer, where dehaviour can be described by selector function