-
Notifications
You must be signed in to change notification settings - Fork 212
Open
Description
Line 420 in 915dd98
| Flux.usingWhen( |
UsingWhen factory method declaration got changed in reactor-core 3.4.17. Source needs to update with
@Test
public void usingWhenExample() throws InterruptedException {
Flux.usingWhen(
Transaction.beginTransaction(),
transaction -> transaction.insertRows(Flux.just("A", "B")),
Transaction::commit,
(transaction, throwable) -> Mono.empty(), // <<== extra parameter
Transaction::rollback
).subscribe(
d -> log.info("onNext: {}", d),
e -> log.info("onError: {}", e.getMessage()),
() -> log.info("onComplete")
);
Thread.sleep(1000);
}
Metadata
Metadata
Assignees
Labels
No labels