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)
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
Type members
Inherited classlikes
Inherited types
Value members
Concrete methods
Inherited methods
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
return F which contains sequence from first n
elements.
return F which contains sequence from first n
elements.
- Inherited from
- ReadChannel
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
- Inherited from
- WriteChannel