shortcut for blocking write.
shortcut for blocking write.
shortcut for blocking write.
shortcut for blocking write.
apply f and send result to channels processor.
provide pair from Output and Input (ready, timeouts) such that writing to ready
will case writing to output and if it was not completed during timeoutstimeout than
appropriative duration will be availabe in input.
provide pair from Output and Input (ready, timeouts) such that writing to ready
will case writing to output and if it was not completed during timeoutstimeout than
appropriative duration will be availabe in input.
val (chReady, chTimeouts) = ch withOutputTimeouts (5 seconds)
select.forever {
case x: chReady.write if (x==somethingToWrite) =>
Console.println(s" ${x} send")
case t: chTimeouts.read if (x==somethingToWrite) =>
Console.println(s"timeout during writing")
}
'blocking' write of 'a' to channel.
'blocking' write of 'a' to channel. Note, that this method can be called only inside 'go' or 'async' blocks.