Object ChannelUtils.Companion
-
- All Implemented Interfaces:
public class ChannelUtils.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static ChannelUtils.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final <T extends Any> UnitpostDisconnectedAndClearList(AtomicSet<Channel<T>> listSingle)final <T extends Any> UnitpostExceptionAndClearList(AtomicSet<Channel<T>> listFlowable, Throwable throwable)final <T extends Any> UnitpostError(AtomicSet<Channel<T>> list, Throwable throwable)final <T extends Any> UnitupdateView(T obj)final <T extends Any> UnitemitNext(AtomicSet<T> list, Function1<T, Unit> emitter)final <T extends Any> Unitcomplete(AtomicSet<Channel<T>> list)final <T extends Any> Flow<T>monitorNotifications(AtomicSet<Channel<T>> observers, BleGattTxInterface transport, Boolean checkConnection)Template type monitor notifications to remove boilerplate code -
-
Method Detail
-
postDisconnectedAndClearList
final <T extends Any> Unit postDisconnectedAndClearList(AtomicSet<Channel<T>> listSingle)
-
postExceptionAndClearList
final <T extends Any> Unit postExceptionAndClearList(AtomicSet<Channel<T>> listFlowable, Throwable throwable)
-
updateView
final <T extends Any> Unit updateView(T obj)
-
monitorNotifications
final <T extends Any> Flow<T> monitorNotifications(AtomicSet<Channel<T>> observers, BleGattTxInterface transport, Boolean checkConnection)
Template type monitor notifications to remove boilerplate code
- Parameters:
observers- AtomicSet of observerstransport- for connection checkcheckConnection- optional check initial connection- Returns:
Flow stream
-
-
-
-