Transaction

com.raquo.airstream.core.Transaction
See theTransaction companion object
class Transaction(var code: Transaction => Any)

Transaction is a moment in time during which Airstream guarantees no FRP glitches.

Some observables need to emit their events in new transactions. Roughly speaking:

  • All async observables (e.g. delay(100))
  • All observables that can create loops in the observable graph (e.g. flatMapSwitch)
  • All observables that get their events from outside of Airstream (e.g. custom sources)

An observable can only emit once in a given transaction.

  • See MergeStream or CustomSource for examples of handling that.

See the docs for more details.

Value parameters

code

Note: Must not throw!

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
In this article