instance of gopher API
apply f, when input will be ready and send result to API processor
synonym for read.
async version of read.
async version of read. Immediatly return future, which will contains result of read or failur with StreamClosedException in case of stream is closed.
return feature which contains sequence from first n
elements.
duplicate input
run f
each time when new object is arrived.
run f
each time when new object is arrived. Ended when input closes.
must be inside go/async/action block.
read object from channel.
read object from channel. Must be situated inside async/go/action block.
return pair of inputs (ready, timeouts)
, such that when you read from ready
you receive element from this
and if during reading you wait more than specified timeout
, than timeout message is appear in timeouts
return pair of inputs (ready, timeouts)
, such that when you read from ready
you receive element from this
and if during reading you wait more than specified timeout
, than timeout message is appear in timeouts
val (inReady, inTimeouts) = in withInputTimeouts (10 seconds)
select.forever {
case x: inReady.read => Console.println(s"received value ${value}")
case x: inTimeouts.read => Console.println(s"timeout occured")
}
return input merged with 'other'.
return input merged with 'other'. (i.e. non-determenistics choice)
Entity, from which we can read objects of type A.