package Ġcl . ben m . observable . future Ċ Ċ import Ġcl . ben m . observable . Exception Or Value Ċ import Ġcl . ben m . observable . Observable Ċ import Ġcom . google . common . util . concurrent . List enable Future Ċ import Ġjava . util . concurrent . Executor Ċ Ċ fun Ġ< T > ĠObservable < T >. to Future ( executor : ĠExecutor ): ĠList enable Future < T > Ġ{ ĊĠĠĠ Ġreturn ĠObservable To Future . to Future ( this , Ġexecutor ) Ċ } Ċ Ċ fun Ġ< T > ĠList enable Future < T >. to Observable (): ĠObservable < T > Ġ{ ĊĠĠĠ Ġreturn ĠFuture Observable ( this ) Ċ }