mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-18 07:16:45 +00:00
release v2.3.4
remove basic wrapper methods
This commit is contained in:
@@ -5,9 +5,7 @@ import dev.tommyjs.futur.promise.PromiseCompletion;
|
||||
import dev.tommyjs.futur.promise.PromiseFactory;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import org.redisson.api.RFuture;
|
||||
import org.slf4j.Logger;
|
||||
import reactor.core.publisher.Mono;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -110,18 +108,10 @@ public final class PromiseUtil {
|
||||
return pfac.race(cancelRaceLosers, promises);
|
||||
}
|
||||
|
||||
public static @NotNull <T> Promise<T> wrapMono(@NotNull Mono<T> mono) {
|
||||
return pfac.wrapMono(mono);
|
||||
}
|
||||
|
||||
public static @NotNull <T> Promise<T> wrap(@NotNull CompletableFuture<T> future) {
|
||||
return pfac.wrap(future);
|
||||
}
|
||||
|
||||
public static @NotNull <T> Promise<T> wrapRedisson(@NotNull RFuture<T> future) {
|
||||
return pfac.wrapRedisson(future);
|
||||
}
|
||||
|
||||
public static @NotNull <T> Promise<T> resolve(T value) {
|
||||
return pfac.resolve(value);
|
||||
}
|
||||
|
||||
@@ -18,7 +18,6 @@ public final class StaticPromiseFactory extends AbstractPromiseFactory<Future<?>
|
||||
private final static @NotNull Logger LOGGER = LoggerFactory.getLogger(StaticPromiseFactory.class);
|
||||
|
||||
private StaticPromiseFactory() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user