continuous
Create a Behavior from a continuous function of time since the initial state of the behavior.
Example:
val wave = Behavior.continuous { time ->
sin(time.seconds)
}
Content copied to clipboard
NOTE: The function used to define continuous should be pure. For impure / non-deterministic behaviors, you should use sampled instead.