getCloneAsync

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

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

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.