User Tools

Site Tools


tutorials:commands:suggestions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tutorials:commands:suggestions [2020/11/25 08:12]
i509vcb Mark as CC0 since I am sole author of article here
tutorials:commands:suggestions [2020/11/25 08:15]
i509vcb Link to CompleteableFuture in JDK javadoc
Line 7: Line 7:
 ===== Suggestion Providers ===== ===== Suggestion Providers =====
  
-A ''​SuggestionProvider''​ is used to make a list of suggestions that will be sent to the client. A suggestion provider is a functional interface that takes a ''​CommandContext''​ and a ''​SuggestionBuilder''​ and returns some ''​Suggestions''​. The ''​SuggestionProvider''​ returns a ''​CompletableFuture'' ​as the suggestions may not be available immediately.+A ''​SuggestionProvider''​ is used to make a list of suggestions that will be sent to the client. A suggestion provider is a functional interface that takes a ''​CommandContext''​ and a ''​SuggestionBuilder''​ and returns some ''​Suggestions''​. The ''​SuggestionProvider''​ returns a [[https://​docs.oracle.com/​en/​java/​javase/​15/​docs/​api/​java.base/​java/​util/​concurrent/​CompletableFuture.html|CompletableFuture]] ​as the suggestions may not be available immediately.
  
  
tutorials/commands/suggestions.txt ยท Last modified: 2020/11/25 08:15 by i509vcb