Add methods to Async to allow using method references in ambiguous situations #386
Labels
enhancement
A request for change or improvement to an existing feature
Milestone
In another library we have the following code:
SonarCloud is complaining that we should use a method reference for
() -> invoker.get()
but if you try, you receive the following compilation error:We should add methods to
Async
to allow calling theRunnable
orSupplier
methods unambiguously.Suggestions:
runAsync
supplyAsync
Hopefully it is obvious which one takes what argument. 😉
The text was updated successfully, but these errors were encountered: