Skip to content
Michael Santos edited this page Aug 16, 2020 · 5 revisions

Module prx_task

Copyright (c) 2016-2020 Michael Santos michael.santos@gmail.com

Data Types


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

op() = {function(), list()} |{module(), function(), list()} |{module(), function(), list(), [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()}
Clone this wiki locally