observable kotlin android
snippet in kotlin

observable kotlin android

user7367

Observable.just("Apple", "Orange", "Banana")    .subscribe(        { value -> println("Received: $value") }, // onNext        { error -> println("Error: $error") },    // onError        { println("Completed!") }                 // onComplete    )