Package de.justjanne.libquassel.protocol.util

Types

Link copied to clipboard
interface StateHolder<T>

Functions

Link copied to clipboard
@ExperimentalCoroutinesApi
inline fun <T> Flow<Iterable<StateHolder<T>>?>.combineLatest(): Flow<List<T>>
Link copied to clipboard
@ExperimentalCoroutinesApi
inline fun <T> Flow<StateHolder<T>?>.flatMap(): Flow<T?>
Link copied to clipboard
inline fun <T> MutableStateFlow<T>.update(function: T.() -> T)
Link copied to clipboard
inline fun <T : Buffer> T.withClear(): T

Utility function wrapping the Buffer.clear call on older JDKs where it always returns a plain Buffer instead of the correct type

Link copied to clipboard
inline fun <T : Buffer> T.withFlip(): T

Utility function wrapping the Buffer.flip call on older JDKs where it always returns a plain Buffer instead of the correct type

Link copied to clipboard
inline fun <T : Buffer> T.withLimit(limit: Int): T

Utility function wrapping the Buffer.limit call on older JDKs where it always returns a plain Buffer instead of the correct type

Link copied to clipboard
inline fun <T : Buffer> T.withMark(): T

Utility function wrapping the Buffer.mark call on older JDKs where it always returns a plain Buffer instead of the correct type

Link copied to clipboard
inline fun <T : Buffer> T.withPosition(position: Int): T

Utility function wrapping the Buffer.position call on older JDKs where it always returns a plain Buffer instead of the correct type

Link copied to clipboard
inline fun <T : Buffer> T.withReset(): T

Utility function wrapping the Buffer.reset call on older JDKs where it always returns a plain Buffer instead of the correct type

Link copied to clipboard
inline fun <T : Buffer> T.withRewind(): T

Utility function wrapping the Buffer.rewind call on older JDKs where it always returns a plain Buffer instead of the correct type