question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Async suggestion support.

See original GitHub issue

Please describe your suggestion Async support for overriding suggestion.

Please supply examples of the desired inputs and outputs

new PlayerArgument("player").overrideSuggestions(sender -> {
  return CompletableFuture.supplyAsync(() -> {
    final var players = new ArrayList<String>();
    players.add("db-player-1");
    players.add("db-player-2");
    players.add("db-player-3");
    return players.toArray(new String[0]);
  });
});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
JorelAlicommented, Dec 4, 2021

This is indeed possible! Massive kudos to the pull request from #249.

asyncsuggestionscomingsoon

0reactions
JorelAlicommented, Apr 13, 2022

Implemented in 7.0.0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Async functions | Can I use... Support tables for HTML5 ...
Async functions make it possible to treat functions returning Promise objects as if they were synchronous. Usage % of. all users, all tracked,...
Read more >
Suggestion: supporting asynchronous stack traces for ...
Background Currently TypeScript supports the async and await keywords when ES6 is set as build target, using generators under the hood.
Read more >
Asynchronous programming: futures, async, await
This codelab teaches you how to write asynchronous code using futures and the async and await keywords. Using embedded DartPad editors, you can...
Read more >
async/await Visual Studio autocomplete
If my understanding is correct you have to await an async method and you can only use await in an async method. Why...
Read more >
Vuetify v-autocomplete with async suggestions but locally ...
I have a Vuetify autocomplete with multiple selection with chips whose suggestions dropdown are not stored locally, but are always retrieved ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found