Skip to content

Request to be blocked all the time #5848

Answered by ikhoon
lw33 asked this question in Q&A
Discussion options

You must be logged in to vote

Armeria services are executed in an event loop which should not be blocked by a blocking operation such as future.get().

future.whenComplete((res, ex) -> System.out.println(res));
future.get();

You may want to annotate your service with @Blocking to make it work.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lw33
Comment options

Answer selected by lw33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants