Closed auriium2 closed 2 years ago
It re-transforms only methods with bodies. So you have to follow this pattern:
public interface MyInterface {
abstract public CompletionStage<String> myAsyncMethod();
}
public class MyClass implements MyInterface {
@Overrides
@async public CompletionStage<String> myAsyncMethod() {
...
return async(myResult);
}
}
Does async await work with interfaces? If so, would i make @async the interface method or the implementing class?