π
Working from home
π¨βπ» Development Specialist @ KPIT
π¨βπ Computer Science Undergrad
π± Mobile App Developer β€οΈ Android βοΈ Open Source Enthusiast
-
KPIT
- Kochi,India
- https://www.linkedin.com/in/eldhopj
Pinned Loading
-
Android-Template
Android-Template Public templateBase Project for apps which uses n/w calls
-
-
-
-
WorkManagerSample
WorkManagerSample PublicA sample work manager code base with chaining, sequential, parallel periodic , onetime work requests
Kotlin 1
-
suspendCoroutine { Convert callback...
suspendCoroutine { Convert callbacks into suspend functions } 1private suspend fun singleValueEvent((ref: DatabaseReference ,onCancellation: CancellationCallback = {}),onCancellation: CancellationCallback = {}): DataResponse<DataSnapshot> {
2return suspendCancellableCoroutine { continuation -> // can use suspendCoroutine not worry about cancellation
3val valueEventListener = object : ValueEventListener {
4override fun onCancelled(error: DatabaseError) {
5continuation.resume(DataResponse.Error(error.toException()), onCancellation) // setting data
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.