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)
Attributes
- Companion
- object
- Source
- GuardedSPSCBaseChannel.scala
- Graph
-
- Supertypes
-
trait Closeabletrait AutoCloseableclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
- Supertypes
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
- Supertypes
Inherited types
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Special type which is used in select statement.
Special type which is used in select statement.
Attributes
- See also
-
[gopher.Select]
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Value members
Concrete methods
Attributes
- Source
- GuardedSPSCBaseChannel.scala
Attributes
- Source
- GuardedSPSCBaseChannel.scala
Attributes
- Source
- GuardedSPSCBaseChannel.scala
Attributes
- Source
- GuardedSPSCBaseChannel.scala
Attributes
- Source
- GuardedSPSCBaseChannel.scala
Inherited methods
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Synonim for read.
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.
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- 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.
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
return F which contains sequence from first n
elements.
return F which contains sequence from first n
elements.
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Definition Classes
- Inherited from:
- Channel
- Source
- Channel.scala
Attributes
- Definition Classes
- Inherited from:
- Channel
- Source
- Channel.scala
Attributes
- Inherited from:
- Channel
- Source
- Channel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- 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
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Definition Classes
- Inherited from:
- Channel
- Source
- Channel.scala
Attributes
- Definition Classes
- Inherited from:
- Channel
- Source
- Channel.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.
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- 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
Attributes
- 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.
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- Channel
- Source
- Channel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Attributes
- Inherited from:
- WriteChannel
- Source
- WriteChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala
Concrete fields
Attributes
- Source
- GuardedSPSCBaseChannel.scala
Inherited fields
Attributes
- Inherited from:
- ReadChannel
- Source
- ReadChannel.scala