avoid var in ClientHook
This commit is contained in:
parent
3ec3dbae57
commit
7c521d5840
1 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ public interface ClientHook {
|
|||
* Repeatedly calls whenMoreResolved() until it returns nullptr.
|
||||
*/
|
||||
default CompletableFuture<java.lang.Void> whenResolved() {
|
||||
var promise = whenMoreResolved();
|
||||
CompletableFuture<ClientHook> promise = whenMoreResolved();
|
||||
return promise != null
|
||||
? promise.thenCompose(ClientHook::whenResolved)
|
||||
: CompletableFuture.completedFuture(null);
|
||||
|
@ -83,7 +83,7 @@ public interface ClientHook {
|
|||
}
|
||||
|
||||
/**
|
||||
* Implements {@link Capability.Client.getFd}. If this returns null but whenMoreResolved() returns
|
||||
* Implements Capability.Client.getFd. If this returns null but whenMoreResolved() returns
|
||||
* non-null, then Capability::Client::getFd() waits for resolution and tries again.
|
||||
*/
|
||||
default FileDescriptor getFd() {
|
||||
|
|
Loading…
Reference in a new issue