-
Notifications
You must be signed in to change notification settings - Fork 6
prx_task
Michael Santos edited this page Aug 16, 2020
·
5 revisions
Copyright (c) 2016-2020 Michael Santos michael.santos@gmail.com
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()})}
do/3 | |
do/4 | |
with/3 |
do(Parent :: prx:task(), Ops :: [op() | [op()]], State :: any()) ->{ok, prx:task()} | {error, prx:posix()}
do(Parent :: prx:task(),Ops :: [op() | [op()]],State :: any(),Config :: [config()]) ->{ok, prx:task()} | {error, prx:posix()}
with(Task :: prx:task(), Ops :: [op() | [op()]], State :: any()) ->ok |{error, any()} |{badop, {module(), function(), list()}, [op()]} |{badarg, any()}