Add ConcurrentComponentStorage builder

This commit is contained in:
Him188 2021-06-16 01:52:42 +08:00
parent e6119e6301
commit 24ac4ffa95

View File

@ -59,6 +59,10 @@ internal class ConcurrentComponentStorage(
} }
} }
internal inline fun ConcurrentComponentStorage(builderAction: ConcurrentComponentStorage.() -> Unit): ConcurrentComponentStorage {
return ConcurrentComponentStorage().apply(builderAction)
}
private val SHOW_ALL_COMPONENTS: Boolean by lazy(NONE) { systemProp("mirai.debug.network.show.all.components", false) } private val SHOW_ALL_COMPONENTS: Boolean by lazy(NONE) { systemProp("mirai.debug.network.show.all.components", false) }
private val SHOW_COMPONENTS_CREATION_STACKTRACE: Boolean by lazy(NONE) { private val SHOW_COMPONENTS_CREATION_STACKTRACE: Boolean by lazy(NONE) {
systemProp( systemProp(