Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Koksharov committed Mar 18, 2019
1 parent c19e9ab commit e5c84d7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions redisson/src/test/java/org/redisson/BaseReactiveTest.java
Expand Up @@ -74,8 +74,12 @@ public static <V> Iterable<V> toIterable(Publisher<V> pub) {
return Flux.from(pub).toIterable(); return Flux.from(pub).toIterable();
} }


public static <V> V sync(Publisher<V> ob) { public static <V> V sync(Mono<V> mono) {
return Mono.from(ob).block(); return mono.block();
}

public static <V> V sync(Flux<V> flux) {
return flux.single().block();
} }


public static RedissonReactiveClient createInstance() { public static RedissonReactiveClient createInstance() {
Expand Down

0 comments on commit e5c84d7

Please sign in to comment.