Module prx_task

Copyright © 2016-2020 Michael Santos <michael.santos@gmail.com>

Data Types

config()

config() = {init, fun((prx:task()) -> {ok, prx:task()} | {error, prx:posix()})} | {terminate, fun((prx:task(), prx:task()) -> any())}

op()

op() = {function(), list()} | {module(), function(), list()} | {module(), function(), list(), [option()]}

option()

option() = state | errexit | {state, boolean()} | {errexit, boolean()} | {transform, fun((any()) -> ok | {ok, State::any()} | {error, prx:posix()})}

Function Index

do/3
do/4
with/3

Function Details

do/3

do(Parent::prx:task(), Ops::[op() | [op()]], State::any()) -> {ok, prx:task()} | {error, prx:posix()}

do/4

do(Parent::prx:task(), Ops::[op() | [op()]], State::any(), Config::[config()]) -> {ok, prx:task()} | {error, prx:posix()}

with/3

with(Task::prx:task(), Ops::[op() | [op()]], State::any()) -> ok | {error, any()} | {badop, {module(), function(), list()}, [op()]} | {badarg, any()}


Generated by EDoc