dave08
09/15/2017, 6:53 AMrwachol
09/20/2017, 2:53 PMcdurham
09/27/2017, 3:43 PMPierrick
09/28/2017, 10:11 AMVariable
to access to the current value (myVar.value
) and if you want you can create an observable (myVar.toObservable
). There is a way to do that with RxKotlin ?dimsuz
09/28/2017, 12:38 PMwithLatestFrom
would pick a previous item from observable1 which is not what neededadams2
09/30/2017, 2:16 PManstaendig
10/16/2017, 6:41 AMgabrielfv
10/21/2017, 5:26 PMfstn
10/21/2017, 7:27 PMrx.Observable.merge(
events.map{
eventbus.rxSend(....).toObservalbe()
}
}.subscribe(next,error)
Slackbot
10/22/2017, 1:28 PMviliusk
11/15/2017, 1:24 PMRxTextView.textChanges(customer_phone_number)
)
• debounce queries (every 1second)
• show progressBar
• execute retrofit call: apiServices.getMemberDetails(it)
• show membership details on success with showMemberDetails(it.membership)
• keep waiting for query updates if nothing was found and HttpException: HTTP 400 happened.
When HTTP failure happens, my subscription to query updates is lost.
What’s correct approach for such scenario?alex.hart
11/15/2017, 2:05 PMsealed class Response {
data class Success(data: Data): Response()
data class Error(code: Int, msg: String): Response()
}
Then, when you perform your retrofit action, you can map whatever happens to the appropriate response.
The trick is to make sure an error never really enters the stream to begin with (as I believe it gets trickier since as soon as you send an error your original stream is going to terminate)leosan
11/15/2017, 2:11 PMkevin.cianfarini
11/23/2017, 10:52 PMsubscribeOn
and observeOn
? From what I understand subscribeOn defines where the data is originally emitted from and each subsequent observeOn sends those emissions to different threads?anstaendig
11/24/2017, 1:38 PMthomasnield
11/24/2017, 2:01 PMramonsgds
12/12/2017, 2:47 AMramonsgds
12/12/2017, 2:48 AMSingle.fromCallable
and then I sticked up with itjw
12/21/2017, 10:15 PMmyanmarking
12/22/2017, 9:58 AMkatien
12/30/2017, 11:30 PMdimsuz
01/01/2018, 6:35 PMdoOnComplete()
which is invoked only when Maybe is empty...katien
01/02/2018, 3:30 AMmap
, but where map
will transform a success result before onComplete(successResult)
is called, this function would transform an error before onError(error)
is calledmingkangpan
01/31/2018, 12:10 PMrakeeb
02/05/2018, 9:00 AMrakeeb
02/06/2018, 7:24 AMkatien
02/07/2018, 1:49 AMsanogueralorenzo
02/07/2018, 12:59 PMrakeeb
02/08/2018, 9:23 AMhmole
02/08/2018, 4:44 PMhmole
02/08/2018, 4:44 PMmaciekjanusz
02/08/2018, 5:27 PMval call: Call
Observable.fromPublisher<Response> { s ->
call.enqueue(object : Callback {
override fun onFailure(call: Call?, e: IOException?) = {
s.onError(e)
}
override fun onResponse(call: Call?, response: Response?) = {
s.onNext(response)
s.onComplete()
}
})
}
dkhusainov
02/08/2018, 8:47 PMdamien5314
02/09/2018, 12:28 AM