21 lines
525 B
Markdown
21 lines
525 B
Markdown
|
---
|
||
|
aliases:
|
||
|
tags:
|
||
|
- зрелость/🌱
|
||
|
date:
|
||
|
- - 2023-11-22
|
||
|
zero-link:
|
||
|
- "[[00 Java разработка]]"
|
||
|
parents:
|
||
|
- "[[Quarkus]]"
|
||
|
linked:
|
||
|
---
|
||
|
```java
|
||
|
Uni<String> uni = Uni.createFrom()
|
||
|
.item(this::invokeRemoteServiceUsingBlockingIO)
|
||
|
.runSubscriptionOn(Infrastructure.getDefaultWorkerPool());
|
||
|
|
||
|
Multi<String> multi = Multi.createFrom().items("john", "jack", "sue")
|
||
|
.emitOn(Infrastructure.getDefaultWorkerPool())
|
||
|
.onItem().transform(this::invokeRemoteServiceUsingBlockingIO);
|
||
|
```
|