Transaction

Companion:
class
class Object
trait Matchable
class Any

Type members

Classlikes

object onStart

This object holds a queue of callbacks that should be executed when all observables finish starting. This lets signal.changes streams emit the updated signal's value when restarting, in such a way that the value propagates to all new observers instead of just the first new observer that triggered restart.

This object holds a queue of callbacks that should be executed when all observables finish starting. This lets signal.changes streams emit the updated signal's value when restarting, in such a way that the value propagates to all new observers instead of just the first new observer that triggered restart.

For that to happen, you need to wrap the code that's adding several observers into onStart.shared. We do this in a couple places in Airstream, and in a couple places in Laminar, and this seems to cover most reasonable use cases. Users might need to wrap some of their code into onStart.shared manually if they manage subscriptions manually.