ox.flow

package ox.flow

Members list

Packages

Type members

Classlikes

class Flow[+T](val last: FlowStage[T]) extends FlowOps[T], FlowRunOps[T], FlowIOOps[T], FlowTextOps[T], FlowReactiveOps[T]

Describes an asynchronous transformation pipeline. When run, emits elements of type T.

Describes an asynchronous transformation pipeline. When run, emits elements of type T.

A flow is lazy - evaluation happens only when it's run.

Flows can be created using the Flow.usingSink, Flow.fromValues and other Flow.from* methods, Flow.tick etc.

Transformation stages can be added using the available combinators, such as Flow.map, Flow.buffer, Flow.grouped, etc. Each such method returns a new immutable Flow instance.

Running a flow is possible using one of the run* methods, such as Flow.runToList, Flow.runToChannel or Flow.runFold.

Attributes

Companion
object
Supertypes
trait FlowReactiveOps[T]
trait FlowTextOps[T]
trait FlowIOOps[T]
trait FlowRunOps[T]
class FlowOps[T]
class Object
trait Matchable
class Any
Show all

Attributes

Companion
class
Supertypes
class Object
trait Matchable
class Any
Show all
Self type
Flow.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Flow
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Flow
Self type
Flow.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Flow
Self type
Flow.type
trait FlowEmit[-T]

Instances of this trait should be considered thread-unsafe, and only used within the scope in which they have been obtained, e.g. as part of Flow.usingEmit or Flow.mapUsingEmit.

Instances of this trait should be considered thread-unsafe, and only used within the scope in which they have been obtained, e.g. as part of Flow.usingEmit or Flow.mapUsingEmit.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
object FlowEmit

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
FlowEmit.type
trait FlowIOOps[+T]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]
class FlowOps[+T]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]
trait FlowReactiveOps[+T]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]
trait FlowRunOps[+T]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]
trait FlowStage[+T]

Contains the logic for running a single flow stage. As part of runs implementation, previous flow stages might be run, either synchronously or asynchronously.

Contains the logic for running a single flow stage. As part of runs implementation, previous flow stages might be run, either synchronously or asynchronously.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class FromSource[T]
object FlowStage

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type
FlowStage.type
trait FlowTextOps[+T]

Attributes

Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Flow[T]
Self type
Flow[T]