StreamWrapper

abstract class StreamWrapper<T>(wrapped: Stream<T>) : StreamWrapperBase<T, T>

Base class for stream wrappers that keep the value type

Parameters

wrapped

The wrapped stream

Constructors

Link copied to clipboard
fun <T> StreamWrapper(wrapped: Stream<T>)

Functions

Link copied to clipboard
open operator override fun invoke(): T

Returns the current value of the stream

Link copied to clipboard
open override fun subscribeToStream(sub: StreamHandler<T>): Unsubscribe

Adds a subscription to the stream.