Skip to content

Latest commit

 

History

History
107 lines (55 loc) · 1.95 KB

hydrologic.md

File metadata and controls

107 lines (55 loc) · 1.95 KB

Module hydrologic

Data Types


data() = any()

operation() = term()

pipe() = atom()

reduct() = '__empty__' | data() | {data(), any()} | {'__end__', any()}

Function Index

flow/2Equivalent to run(Pipe, Data).
new/2 Create a new pipe.
run/2 Execute a pipe treatment.
stop/1 Destroy the given pipe.

Function Details

flow/2

flow(Pipe, Data) -> any()

Equivalent to run(Pipe, Data).

new/2


new(Name::atom(), Operations::[operation()]) -> pipe()

Create a new pipe.

run/2


run(Pipe::pipe(), Data::data()) -> {ok, data()} | {error, term(), data()} | {error, term()} | any()

Execute a pipe treatment.

stop/1


stop(Pipe::pipe()) -> ok | {error, term()}

Destroy the given pipe.