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

The line below in a Networked App causes the execution of program, to wait till input from user  RSS feed

 
Leonidas Savvides
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The line below in a Networked App causes the execution of program, to wait till input from user[eg in a chat the ClientUser response, towards Server and vice versa(chat)]...?

 
Nitesh Kant
Bartender
Posts: 1638
IntelliJ IDE Java MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the type of object input?
If it is a stream and it is configured to block then it will block till it receives the end of stream or some data (which in your case is the user input)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!