[BUG] EventHubsTemplate#sendAsync is not real async because of block()
#31358
Labels
azure-spring
All azure-spring related issues
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
Milestone
Describe the bug
In my understanding, async method should not contains
Mono.block()
. But current EventHubsTemplate#sendAsync() method's implementation contains 2Mono.block()
s.Here is the screenshot of related code:
Code Snippet
![image](https://user-images.githubusercontent.com/13167207/194790253-519c979d-9763-49d2-91f4-aef6181b4e88.png)
![image](https://user-images.githubusercontent.com/13167207/194801617-3ca6348f-1f4b-4263-8507-bdbbe0ca0226.png)
Expected behavior
No
block()
inEventHubsTemplate#sendAsync()
The text was updated successfully, but these errors were encountered: