Skip to content

Files

Latest commit

2ebe404 · Mar 1, 2017

History

History

kotlinx-coroutines-reactive

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 1, 2017
Mar 1, 2017
Mar 1, 2017

README.md

Module kotlinx-coroutines-reactive

Utilities for Reactive Streams.

Coroutine builders:

Name Result Scope Description
publish Publisher ProducerScope Cold reactive publisher that starts coroutine on subscribe

Suspending extension functions and suspending iteration:

Name Description
Publisher.awaitFirst Returns the first value from the given publisher
Publisher.awaitLast Returns the last value from the given publisher
Publisher.awaitSingle Returns the single value from the given publisher
Publisher.open Subscribes to publisher and returns ReceiveChannel
Publisher.iterator Subscribes to publisher and returns ChannelIterator

Conversion functions:

Name Description
ReceiveChannel.toPublisher Converts streaming channel to hot publisher

Package kotlinx.coroutines.experimental.reactive

Utilities for Reactive Streams.