startFrom

abstract fun startFrom(startModel: M): MobiusLoop<M, E, F>

Start a MobiusLoop using this factory.

Return

the started MobiusLoop

Parameters

startModel

the model that the loop should start from


abstract fun startFrom(startModel: M, startEffects: Set<F>): MobiusLoop<M, E, F>

Start a {@link MobiusLoop} using this factory.

Return

the started MobiusLoop

Parameters

startModel

the model that the loop should start from

startEffects

the effects that the loop should start with