You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this in spring boot service, I found that await works like sync function to service, am I right ?
consider codes:
`
@ResponseBody()
@PostMapping("query.do")
public QueryResult query(@RequestParam int pageNum) {
QueryResult result = new QueryResult(); <1>
result.setResult(await(queryResult(pageNum))); <2>
return result; <3>
}
`
In fact, this function only return after <2> queryResult is done?
The text was updated successfully, but these errors were encountered:
I'm not super familiar with spring boot, but is QueryResult derived from CompletionStage/CompletableFuture?
EA async instrumented methods must return and can only await on CompletionStage derived futures currently.
Hi, thanks for great jobs!
I tried this in spring boot service, I found that await works like sync function to service, am I right ?
consider codes:
`
`
In fact, this function only return after <2> queryResult is done?
The text was updated successfully, but these errors were encountered: