mirror of
https://github.com/tommyskeff/futur4j.git
synced 2026-01-18 07:16:45 +00:00
release 2.0.0
This commit is contained in:
@@ -2,7 +2,7 @@ package dev.tommyjs.futur.reactivestreams;
|
||||
|
||||
import dev.tommyjs.futur.promise.Promise;
|
||||
import dev.tommyjs.futur.promise.PromiseFactory;
|
||||
import dev.tommyjs.futur.promise.UnpooledPromiseFactory;
|
||||
import dev.tommyjs.futur.promise.StaticPromiseFactory;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.reactivestreams.Publisher;
|
||||
|
||||
@@ -14,8 +14,4 @@ public class ReactiveTransformer {
|
||||
return subscriber.getPromise();
|
||||
}
|
||||
|
||||
public static <T> @NotNull Promise<T> wrapPublisher(@NotNull Publisher<T> publisher) {
|
||||
return wrapPublisher(publisher, UnpooledPromiseFactory.INSTANCE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ package dev.tommyjs.futur.reactivestreams;
|
||||
|
||||
import dev.tommyjs.futur.promise.Promise;
|
||||
import dev.tommyjs.futur.promise.PromiseFactory;
|
||||
import dev.tommyjs.futur.promise.UnpooledPromiseFactory;
|
||||
import dev.tommyjs.futur.promise.StaticPromiseFactory;
|
||||
import org.reactivestreams.Subscriber;
|
||||
import org.reactivestreams.Subscription;
|
||||
|
||||
@@ -47,7 +47,7 @@ public class SingleAccumulatorSubscriber<T> implements Subscriber<T> {
|
||||
}
|
||||
|
||||
public static <T> SingleAccumulatorSubscriber<T> create() {
|
||||
return create(UnpooledPromiseFactory.INSTANCE);
|
||||
return create(StaticPromiseFactory.INSTANCE);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user