Skip to content
View Haveack's full-sized avatar

Block or report Haveack

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 Loading

  1. ShareWithCompletionIn.kt ShareWithCompletionIn.kt
    1
    /**
    2
     * Make original flow a SharedFlow, unlike normal shareIn(), this operator will cancel collecting when upstream is completed.
    3
     * This operator only works with flows with non-null values, since we use null as a materialized completion signal.
    4
     */
    5
    @Suppress("UNCHECKED_CAST")
  2. A script to that let you override bu... A script to that let you override build.gradle using local.properties. Put into ~/.gradle/init.d/, and write something like `override.android.buildTypes.debug.minifyEnabled=false`
    1
    ext.OVERRIDE_PREFIX = "override."
    2
    ext.skipRootProject = false
    3
    ext.rootOverridingProps = new HashMap<String, String>()
    4
    
                  
    5
    projectsLoaded {
  3. A crappy implementation to collect f... A crappy implementation to collect flow with an Iterator like interface. Might break some contracts, fail at some edge cases. Use with care.
    1
    
                  
    2
    import kotlinx.coroutines.flow.Flow
    3
    import kotlinx.coroutines.flow.FlowCollector
    4
    import java.lang.Exception
    5
    import kotlin.coroutines.Continuation