com.huanshankeji.vertx.core.Handler.kt Maven / Gradle / Ivy
package com.huanshankeji.vertx.core
import com.huanshankeji.ExperimentalApi
import io.vertx.core.Handler
typealias NullableHandler = Handler?
@Suppress("NOTHING_TO_INLINE")
@ExperimentalApi
inline operator fun NullableHandler.plus(other: NullableHandler): NullableHandler =
if (this === null)
other
else if (other === null)
this
else {
Handler {
[email protected](it)
other.handle(it)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy