Skip to content
View Eldhopj's full-sized avatar
🏠
Working from home
🏠
Working from home
Block or Report

Block or report Eldhopj

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. Android-Template Android-Template Public template

    Base Project for apps which uses n/w calls

    Kotlin 9 5

  2. android-extensions android-extensions Public

    Essential android extensions

    Kotlin 5

  3. kotlin-extensions kotlin-extensions Public

    Commonly used Kotlin Extensions

    Kotlin

  4. RetrofitMVVMSample RetrofitMVVMSample Public

    A sample MVVM retrofit project

    Kotlin 2

  5. WorkManagerSample WorkManagerSample Public

    A sample work manager code base with chaining, sequential, parallel periodic , onetime work requests

    Kotlin 1

  6. suspendCoroutine { Convert callback... suspendCoroutine { Convert callbacks into suspend functions }
    1
        private suspend fun singleValueEvent((ref: DatabaseReference ,onCancellation: CancellationCallback = {}),onCancellation: CancellationCallback = {}): DataResponse<DataSnapshot> {
    2
            return suspendCancellableCoroutine { continuation -> // can use suspendCoroutine not worry about cancellation
    3
                val valueEventListener = object : ValueEventListener {
    4
                    override fun onCancelled(error: DatabaseError) {
    5
                        continuation.resume(DataResponse.Error(error.toException()), onCancellation) // setting data