getAsync

@JvmName(name = "get")
fun <T> getAsync(formSchema: Schema<T>, formValue: T, path: Path, executor: Executor = Dispatchers.Default.asExecutor()): CompletableFuture<Any?>
@JvmName(name = "get")
fun <T> getAsync(formSchema: Schema<T>, formValue: T, path: String, executor: Executor = Dispatchers.Default.asExecutor()): CompletableFuture<Any?>

Returns a future that completes with the single part of the form value formValue (with schema formSchema) matching path.

To get information about multiple parts of a form value at once, use valueInfoAsync instead.

The future will complete exceptionally with InvalidPathException if path contains wildcards or matches no schemas and with NoSuchElementException if no part of formValue matches path.

Optionally provide an Executor to specify the threading model used for this function. By default, the kotlinx.coroutines Default thread pool is used. Pass Runnable::run as the executor to instead run this function in the calling thread.