io.quarkus.smallrye.reactivemessaging.Extensions.kt Maven / Gradle / Ivy
package io.quarkus.smallrye.reactivemessaging
import kotlinx.coroutines.future.await
import org.eclipse.microprofile.reactive.messaging.Emitter
import org.eclipse.microprofile.reactive.messaging.Message
suspend fun Message.ackSuspending() = ack().await()
suspend fun Message.nackSuspending(t: Throwable) = nack(t).await()
suspend fun Emitter.sendSuspending(t: T) = send(t).await()