Documentation
¶
Index ¶
- func Start[S any, A any](self erl.PID, taskFun func(self erl.PID, state S) (S, error), ...) (erl.PID, error)
- func StartLink[S any, A any](self erl.PID, taskFun func(self erl.PID, state S) (S, error), ...) (erl.PID, error)
- func StartMonitor[S any, A any](self erl.PID, taskFun func(self erl.PID, state S) (S, error), ...) (erl.PID, erl.Ref, error)
- func Stop(self erl.PID, task erl.PID, opts ...genserver.ExitOpt) error
- type StartOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartMonitor ¶
Types ¶
type StartOpt ¶
type StartOpt func(opts *taskOpts) *taskOpts
func SetInterval ¶
How often the task function should run. It is inclusive of task run time. so if the interval is 5m and the task takes 1m to run, the task will run effectively every 6m
func SetStartTimeout ¶
How long to wait for this process to start before an error is returned
Click to show internal directories.
Click to hide internal directories.