PreTransactionHandle

Returned by Terminal.startPreTransactionAsync. Wraps the background wait's eventual outcome so callers that want to wait synchronously can do so with join/get - mirrors TransactionHandle, but for the pre-transaction wait, and offers the same getResult/cancel as PreTransactionProgress on the sync side.

Functions

Link copied to clipboard
fun cancel()

Same as PreTransactionProgress.cancel - stops the local wait, does not affect the terminal/payment.

Link copied to clipboard

Waits for the background wait to complete and returns its result, same as join - declares the checked exceptions Java callers of java.util.concurrent.CompletableFuture.get expect.

Link copied to clipboard

Same as PreTransactionProgress.getResult - retrieves the result from this handle's task.

Link copied to clipboard

Waits for the background wait to complete and returns its result, same as blocking getResult - throws an unchecked java.util.concurrent.CompletionException wrapping the original failure.