That fuck shit the fascists are using
1package org.tm.archive.subscription
2
3import io.reactivex.rxjava3.core.Observable
4import io.reactivex.rxjava3.subjects.BehaviorSubject
5
6object LevelUpdate {
7
8 private var isProcessingSubject = BehaviorSubject.createDefault(false)
9
10 var isProcessing: Observable<Boolean> = isProcessingSubject
11
12 fun updateProcessingState(isProcessing: Boolean) {
13 isProcessingSubject.onNext(isProcessing)
14 }
15}