fromUrlAsync

fun fromUrlAsync(url: String, loader: CsafLoader = lazyLoader): <Error class: unknown class>

Asynchronously constructs a RetrievedProvider from a JSON found at the specified URL. The result is wrapped into a CompletableFuture.

Return

A future that resolves to a RetrievedProvider or an error if the operation fails.

Parameters

url

The URL of the resource to fetch.

loader

An instance of CsafLoader used to retrieve the provider. Defaults to lazyLoader.