sync Provider Async
Syncs the external live update provider source if present, returning a CompletableFuture instead of suspending. This is the Java-friendly counterpart to syncProvider.
Example usage (java):
portal.syncProviderAsync().thenAccept(result -> {
// handle result
}).exceptionally(error -> {
// handle error (including LiveUpdateNotConfigured)
return null;
});Content copied to clipboard
Kotlin callers should prefer syncProvider directly; use this only if you specifically need a CompletableFuture, e.g. for interop with existing Future-based code.
Return
a CompletableFuture completed with the result of the synchronization operation, or completed exceptionally if the sync fails.