Whichever comes first
A chat screen waits for a new message, a typing signal or a timeout, whichever comes first. A plain receive can wait on only one channel. select waits on several at once.
A chat screen waits for a new message, a typing signal or a timeout, whichever comes first. A plain receive can wait on only one channel. select waits on several at once.