All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.noheltcj.rxcommon.operators.Operators.kt Maven / Gradle / Ivy

package com.noheltcj.rxcommon.operators

import com.noheltcj.rxcommon.Source

/**
 * While this doesn't follow kotlin convention, the Operators creates better native interfaces
 */
object OperatorHelpers {
  fun  combineLatest(sourceOne: Source, sourceTwo: Source): Source> =
      sourceOne.combineLatest(sourceTwo) {
        e1, e2 -> e1 to e2
      }
}

fun  Source.combineLatest(otherSource: Source): Source> =
    combineLatest(otherSource) {
      e1, e2 -> e1 to e2
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy