ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Follow publication

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Published in ProAndroidDev

The latest posts from Android Professionals and Google Developer Experts.

Written by Ashish Kumar

Engineer @Amazon | Open Source Enthusiast | Mentor Google Summer of Code’19 | Views are my own

Responses (3)

Write a response

for the last code snippet, wh localRepository.saveData(data) has no continuation as one of its param ? if not, how could the next step get exception on continuation.result ?

--

I see the code passing around the return results, but I'm missing the connection with the actual execution. I mean if you're making a network call, that still needs to happen on a thread and someone needs to return the result and resume processing.

--

Interesting. This snippet
continuation.cont.resume(continuation.lastSyncTimestamp)
what is the cont here?

--