Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Follow up question  RSS feed

 
michael yue
Ranch Hand
Posts: 204
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi again n hope not bothering again but have another question. How can I make the servlet wait until there is a definite result coming from another server. Right now i use Thread.sleep(10000) but the time the result arrive is not always consistent. How can i make sure the servlet will wait until the result finally arrive.
Any ideas n suggestions?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!