THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||
---|---|---|
| ||
var i = Integer.parseInt("42"); var s = "Hello".substring(0, 3); var list = Arrays.asList(1, 2, 3); var map = getMapping(); // some method invocation var val = map.get(42); |
async
suffixAsync method is a method that returns Future
, CompletableFuture
, or CompletionStage
.
In some cases, both sync and async variants exist, and async
suffix is used to distinguish them:
Code Block | ||
---|---|---|
| ||
void upsert(@Nullable Transaction tx, @NotNull R rec);
CompletableFuture<Void> upsertAsync(@Nullable Transaction tx, @NotNull R rec); |
In other cases, only async variant may be present, but it should have the async
suffix anyway.
CompletableFuture
- not CompletionStage
...