ConfigApi
class ConfigApi
Config resolution. Obtained from FrakClient.config.
Every suspending member has a *Async twin returning a CompletableFuture for Java callers; a FrakError surfaces there wrapped in a CompletionException.
Functions
Section titled “Functions”| Name | Summary |
|---|---|
| resolve | suspend fun resolve(): FrakResolvedConfig Stale-while-revalidate; only call that reliably 404s on a bad merchant id. suspend fun resolve(forceRefresh: Boolean): FrakResolvedConfig |
| resolveAsync | fun resolveAsync(): CompletableFuture<FrakResolvedConfig> resolve for Java. Completes on the main thread; blocking it from there throws. fun resolveAsync(forceRefresh: Boolean): CompletableFuture<FrakResolvedConfig> resolve for Java. |