Guarded channel work in the next way: reader and writer asynchronically added to readers and writers and force evaluation of internal step function or ensure that currently running step function will see the chanes in readers/writers. Step functions is executed in some thread loop, and in the same time, only one instance of step function is running. (which is ensured by guard)
- Companion:
- object
- Source:
- GuardedSPSCBaseChannel.scala
Type members
Inherited classlikes
Inherited types
Special type which is used in select statement.
Special type which is used in select statement.
- See also:
[gopher.Select]
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
Value members
Concrete methods
Inherited methods
read value and return future with
read value and return future with
- Some(value) if value is available to read
- None if stream is closed.
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
async version of read. Immediatly return future, which will contains result of read or failur with StreamClosedException in case of stream is closed.
async version of read. Immediatly return future, which will contains result of read or failur with StreamClosedException in case of stream is closed.
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
return F which contains sequence from first n
elements.
return F which contains sequence from first n
elements.
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
run code each time when new object is arriced. until end of stream is not reached
run code each time when new object is arriced. until end of stream is not reached
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
read value and return
read value and return
- Some(value) if value is available to read
- None if stream is closed.
should be called inside async block.
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
blocked read: if currently not element available - wait for one. Can be used only inside async block. If stream is closed and no values to read left in the stream - throws StreamClosedException
blocked read: if currently not element available - wait for one. Can be used only inside async block. If stream is closed and no values to read left in the stream - throws StreamClosedException
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
take first n
elements.
should be called inside async block.
take first n
elements.
should be called inside async block.
- Inherited from:
- ReadChannel
- Source:
- ReadChannel.scala
- Inherited from:
- WriteChannel
- Source:
- WriteChannel.scala
- Inherited from:
- WriteChannel
- Source:
- WriteChannel.scala