Skip to content
Avatar

Achievements

Achievements

Block or Report

Block or report gmk57

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.

Report abuse

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

Report abuse

Pinned Loading

  1. 1
    import android.view.LayoutInflater
    2
    import android.view.View
    3
    import android.view.ViewGroup
    4
    import androidx.appcompat.app.AppCompatActivity
    5
    import androidx.fragment.app.DialogFragment
  2. 1
    /**
    2
     * Starts collecting a flow when the lifecycle is started, and **cancels** the collection on stop.
    3
     * This is different from `lifecycleScope.launchWhenStarted { flow.collect{...} }`, in which case
    4
     * the coroutine is just suspended on stop.
    5
     */
  3. 1
    /**
    2
     * Coroutine-based solution for delayed and periodic work. May fire once (if [interval] omitted)
    3
     * or periodically ([startDelay] defaults to [interval] in this case), replacing both
    4
     * `Observable.timer()` & `Observable.interval()` from RxJava.
    5
     *
  4. 1
    /**
    2
     * Analogue of [runCatching] with retry, delay & logging added.
    3
     * Re-throws CancellationException to avoid the need to explicitly skip it in [onFailure].
    4
     * Intervals are calculated since previous failure.
    5
     */

16 contributions in the last year

Dec Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Mon Wed Fri

Contribution activity

December 2021

gmk57 has no activity yet for this period.
Loading

Seeing something unexpected? Take a look at the GitHub profile guide.