Interface AsyncCompletionFn
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Asynchronously produces candidates for a completion request.
-
Method Summary
Modifier and TypeMethodDescriptionCompletionStage<? extends CompletionResult> apply(InteractionContext context, CompletionRequest request) Produces completion candidates asynchronously.
-
Method Details
-
apply
CompletionStage<? extends CompletionResult> apply(InteractionContext context, CompletionRequest request) Produces completion candidates asynchronously.- Parameters:
context- the interaction contextrequest- the completion request- Returns:
- a stage that completes with the completion result
-