mirror of
https://github.com/InsanusMokrassar/PsychomatrixBase.git
synced 2024-11-19 06:43:59 +00:00
added subsriptions constants
This commit is contained in:
parent
5aeca76062
commit
fac3d8f856
@ -5,6 +5,12 @@ import kotlinx.coroutines.experimental.channels.BroadcastChannel
|
|||||||
import kotlinx.coroutines.experimental.channels.ReceiveChannel
|
import kotlinx.coroutines.experimental.channels.ReceiveChannel
|
||||||
import java.util.concurrent.TimeUnit
|
import java.util.concurrent.TimeUnit
|
||||||
|
|
||||||
|
const val SUBSCRIPTIONS_LARGE = 256
|
||||||
|
const val SUBSCRIPTIONS_MEDIUM = 128
|
||||||
|
const val SUBSCRIPTIONS_SMALL = 64
|
||||||
|
const val SUBSCRIPTIONS_EXTRA_SMALL = 32
|
||||||
|
const val SUBSCRIPTIONS_SINGLE = 1
|
||||||
|
|
||||||
fun <T> ReceiveChannel<T>.subscribeChecking(
|
fun <T> ReceiveChannel<T>.subscribeChecking(
|
||||||
throwableHandler: (Throwable) -> Boolean = {
|
throwableHandler: (Throwable) -> Boolean = {
|
||||||
it.printStackTrace()
|
it.printStackTrace()
|
||||||
|
Loading…
Reference in New Issue
Block a user