Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Call a void method as part of a sequence.
- */
- Mono<Void> processObject(Object object) {
- // Note that .fromRunnable(...) returns empty upon completion.
- return Mono.fromRunnable(() -> doSomething(object))
- .then(...);
- }
- void doSomething(Object object) {
- // Do something with the object here.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement