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

your advice much appreciated  RSS feed

 
Dean Tomlinson
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i have a program that makes synchronous mq calls to get data for an application. the calls need to be synchronous becasue the data retrieved will be used to build dynamic web pages.
I would like to incorporate a timeout into my calls, so if a response isn't received in 30 seconds the mq call returns an error code and the web page can feature a message, and not crash.
what is the best way to acheive this? are threads the answer?
cheers, dean
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!