Created
August 9, 2018 15:55
-
-
Save LouisCAD/4f21d67b5cf136e9fe8091758f0ff033 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Suppress("NOTHING_TO_INLINE") | |
inline operator fun <E> ConflatedBroadcastChannel<E>.getValue( | |
thisRef: Any?, | |
prop: KProperty<*> | |
): E = value | |
@Suppress("NOTHING_TO_INLINE") | |
inline operator fun <E> ConflatedBroadcastChannel<E>.setValue( | |
thisRef: Any?, | |
prop: KProperty<*>, | |
value: E | |
) { | |
offer(value) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment