handle null in compose methods

This commit is contained in:
WhatCats
2024-04-07 14:30:42 +02:00
parent c2e4e8c522
commit 54d7b02675
2 changed files with 14 additions and 6 deletions

View File

@@ -33,7 +33,7 @@ public interface Promise<T> {
<V> @NotNull Promise<V> thenApplyDelayedSync(@NotNull ExceptionalFunction<T, V> task, long delay, @NotNull TimeUnit unit);
<V> @NotNull Promise<V> thenComposeSync(@NotNull ExceptionalFunction<T, @NotNull Promise<V>> task);
<V> @NotNull Promise<V> thenComposeSync(@NotNull ExceptionalFunction<T, Promise<V>> task);
@NotNull Promise<Void> thenRunAsync(@NotNull ExceptionalRunnable task);