Module lasp_process

Behaviours: gen_flow.

Function Index

init/1Initialize state.
process/2Computation to execute when inputs change.
read/1Return list of read functions.
single_fire_function/4Track a function in the dag.
start_dag_link/1
start_link/1
start_manual_process/1A lasp process that shouldn't be automatically managed by the dag.
start_single_fire_process/1Starts a single-fire lasp process.

Function Details

init/1

init(X1) -> any()

Initialize state.

process/2

process(Args, State) -> any()

Computation to execute when inputs change.

read/1

read(State) -> any()

Return list of read functions.

single_fire_function/4

single_fire_function(From, To, Fn, Args) -> any()

Track a function in the dag.

Given the input and output variables, and a function, create a single-fire lasp process representing the dataflow computation.

This function is synchronous, as it waits for a value to be returned.

start_dag_link/1

start_dag_link(Args) -> any()

start_link/1

start_link(X1) -> any()

start_manual_process/1

start_manual_process(Args) -> any()

A lasp process that shouldn't be automatically managed by the dag

When using this function, the resulting process isn't tracked by the runtime. Only useful when we want to manually introduce the dependencies in the graph, or for functions that aren't currently supported (fold and stream).

start_single_fire_process/1

start_single_fire_process(Args) -> any()

Starts a single-fire lasp process.

These processes only run until their transform functions complete succesfully one time. Used to model reads and binds on values.


Generated by EDoc