Package org.praxislive.ide.core.api
Interface Callback
public interface Callback
Handle result of a Call into the PraxisCORE system.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Callbackcreate(CompletableFuture<List<org.praxislive.core.Value>> future) Create a callback that completes the providedCompletableFuture.static Callbackcreate(Consumer<Callback.Result> callback) Create a callback that delegates to the provided result consumer.voidHandle call error arguments.voidHandle call return arguments.
-
Method Details
-
onReturn
Handle call return arguments.- Parameters:
args- call arguments
-
onError
Handle call error arguments.- Parameters:
args- call arguments
-
create
Create a callback that delegates to the provided result consumer.- Parameters:
callback- result consumer- Returns:
- new callback
-
create
Create a callback that completes the providedCompletableFuture.- Parameters:
future- completable future- Returns:
- new callback
-