dbQueryAsync

abstract fun <T> dbQueryAsync(statement: Transaction.() -> T): CompletableFuture<T>

Executes a transaction asynchronously using a CompletableFuture.

Return

A CompletableFuture that will contain the result of the transaction.

Parameters

statement

The code to execute within the transaction.

Type Parameters

T

The return type of the statement.