Skip to content

Instantly share code, notes, and snippets.

View MarinaShaposhnikova's full-sized avatar

Maryna Shaposhnikova MarinaShaposhnikova

View GitHub Profile
@MarinaShaposhnikova
MarinaShaposhnikova / Throttle.kt
Last active November 24, 2021 22:39
Throttle Coroutines
package com.meier.marina.magiccoroutines
import android.util.Log
import kotlinx.coroutines.experimental.*
import kotlinx.coroutines.experimental.android.UI
import kotlinx.coroutines.experimental.channels.*
import kotlin.coroutines.experimental.CoroutineContext
class ViewModel {
private var count = 0