now HandlersRegisrar properties are open

This commit is contained in:
InsanusMokrassar 2022-04-25 22:01:04 +06:00
parent 3ac56dcfd3
commit 67b9a03366

View File

@ -10,8 +10,8 @@ import kotlinx.coroutines.*
* to handle data inside of [handle] method * to handle data inside of [handle] method
*/ */
open class HandlersRegistrar<T>( open class HandlersRegistrar<T>(
protected val layers: Iterable<Iterable<Handler<T>>>, protected open val layers: Iterable<Iterable<Handler<T>>>,
protected val defaultHandler: Handler<T>? = null protected open val defaultHandler: Handler<T>? = null
) : Handler<T> { ) : Handler<T> {
/** /**
* Will iterate over the [layers]. On each layer (in face each [Iterable] of [Handler]s) ALL the handlers will be * Will iterate over the [layers]. On each layer (in face each [Iterable] of [Handler]s) ALL the handlers will be