« first day (4535 days earlier)      last day (431 days later) » 

7:35 AM
@ballBreaker august is hot af but i think i ll be here
 
 
2 hours later…
Tim
10:05 AM
@grrigore didn't she pass away a few years ago?
 
say what
nerds, is it possible to convert a retrofit Call<*> to some RxJava Observable or Single?
 
Tim
@grrigore if I elaborate I will be banned
@ballBreaker will get it, surely
 
@Tim she's an actress right?
right?
haha
 
Tim
10:32 AM
yessssssssssss
was*
 
damn
 
 
1 hour later…
11:54 AM
any idea guys?
https://chat.stackoverflow.com/transcript/message/56107064#56107064
 
Tim
yes there are rx adapters for retrofit
the call should never be Observable since it is not possible for a request to return more than once
 
true, but is there a way to map it from call to single, instead of making it a single?
like not delcare it Single<X>
 
Tim
yes but why would you want that
 
i need to run some concurrent calls
and i've done it in rxjava, but not in plain retrofit, okhttp
 
Tim
you have to do something like Single.fromEmitter{ } (I don't remember the exact ones) and do the call inside and manually trigger the Single functionality in there
 
11:58 AM
and i don't seem to find a tutorial (might not know what to google)
@Tim I was thinking about something like that
have a list of Call<> and emit all of them somehow
 
Tim
yeah
Single.zip(a, b, c) and a/b/c are other Singles that are wrapping the calls
don't google for retrofit call speficically, it doesn't matter what you are doing inside the Single
 
yes, but the problem is a/b/c are retrofit Call<T>
 
Tim
wrap them in Single.emitter { }
or Single.fromSomething I don't know what the function is named that lets you wrap something else
 
will have a look
thanks timmy g
i didn't know that single could work with that
 
Tim
something like Single.fromEmitter {emitter -> httpCall.makeRequest() { if (success) emitter.continue() else emitter.error() } }
 
12:07 PM
I see
makes sense, hopefully it will work too haha
 
Tim
make sure to also handle cancellation scenario, so the http call doesn't get stuck etc
 
success is the response from the http call?
I mean won't that act like running all of them one by one?
 
12:30 PM
I'll look into it, thanks Tim
I'll for sure buy you a frikandelen speciale when i ll visit
 
Tim
12:42 PM
no the Single.zip will do them at the same time
I think
 
I'll try it mate
 
Tim
1:10 PM
see here, they have amazing interactive docs
 
thanks, yes, zip will work i think
but idk if that mapping from call to single will
 
1:28 PM
like run this for 5 requests
req1.enqueue(Callback<T> callback)
req2.enqueue(Callback<T> callback)
this is something my gf has to do and i got a little curious about it so apparently they don't need to wait for all to complete or to fail if one fails
they just need to start asap
 
Tim
1:43 PM
in that case just let her figure it out, not our problem :D
 
yep
 
2:25 PM
@Tim lmao
truth
also @Tim when i come to NL in August, would u want to meet up?
 
Tim
it depends on when and where, I don't live a very flexible life
 
what would make it easier for you?
 
Tim
retirement
4
 
like if i come to you etc
so you dont have to meet somewhere
 
Tim
I'm watching my cat most of the day he just laying on the bed next to my desk. Man he lives the best life
 
2:35 PM
i feel that
ill bug you when i have more details figured out
what part of NL are you in again?
also cool skipping you if you arent interested
 
@Tim xD
@Tim yea mate some cats/dogs live the best life
 
Tim
3:23 PM
I am interested but historically I haven't been the best person to meet up with
only once when I ate frikandel speciaal with mark and eric
I am near the city of Den Bosch
 
@Tim and what a frikandel speciaal that was!
 
Tim
innit, can still taste it
and we sang bohemian rhapsody in a questionable bar in the middle of the night
 
3:52 PM
@Tim alright cool m8! Well I'll try to be as flexible as I can to make up for your rigidity and we can try ot make it work
I figured who better to try frikandel speciaal with
will keep you in the loop as i plan stuff :3
 
@MarkO'Sullivan did you migrate to melos v3?
 
 
3 hours later…
7:25 PM
@grrigore melos v3? eeehhhhhh
@Tim that was great fun
Didn't even realize there was a v3
Doesn't look like much changed
 
8:23 PM
there are some breaking changes
is @protected the java's protected equivalent for flutter?
also, is there an equivalent for android's api and implementation in flutter?
 
9:17 PM
@Tim you did WHAT
and I wasn't there??!
@Tim what happened at eating the frikandel that makes you historically not the best person to meet
 
9:51 PM
t..the chatparty doesn't end till I come in
 

« first day (4535 days earlier)      last day (431 days later) »