Config

com.raquo.airstream.custom.CustomSource.Config
See theConfig companion object
final class Config

See docs for custom sources

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def when(passes: () => Boolean): Config

Create a version of a config that only runs start / stop if the predicate passes.

Create a version of a config that only runs start / stop if the predicate passes.

  • start will be run when the CustomSource is about to start if passes returns true at that time
  • stop will be run when the CustomSource is about to stop if your start code ran the last time CustomSource started

Attributes

Concrete fields

val onStart: () => Unit
val onStop: () => Unit
val onWillStart: () => Unit