package Ġcom . example . react iver outer Ċ Ċ import Ġio . reactivex . rx java 3 . core . Observable Ċ import Ġio . reactivex . rx java 3 . core . Single Ċ import Ġjava . util . concurrent . TimeUnit Ċ import Ġkotlin . random . Random Ċ Ċ class ĠSome Provider Ġ{ Ċ ĉ val Ġshould Do Something : ĠSingle < Boolean > Ġ= Ċĉ ĉ Observable . interval ( 8 , Ġ 5 , ĠTimeUnit . SECONDS ) Ċĉĉ ĉ . first Or Error () Ċĉĉ ĉ . flatMap Ġ{ ĠSingle . just ( Random . nextInt ( 1 0 ) Ġ> Ġ 3 ) Ġ} Ċ }