combine

inline fun <T1, T2, R> Reply.Companion.combine(r1: Reply<T1>, r2: Reply<T2>, transform: (T1, T2) -> R): Reply<R>

Combines two Reply instances using the provided transform function. If either Reply has no reply yet (Reply.None), returns Reply.None.


inline fun <T1, T2, T3, R> Reply.Companion.combine(r1: Reply<T1>, r2: Reply<T2>, r3: Reply<T3>, transform: (T1, T2, T3) -> R): Reply<R>

Combines three Reply instances using the provided transform function. If any Reply has no reply yet (Reply.None), returns Reply.None.