GenWorker v0.0.2 GenWorker behaviour

This module provides helper functions and extended

You need to implement callback function:

  • run/0 that defines worker business logic

Link to this section Summary

Callbacks

Callback that should implement task business logic that must be securely processed

Link to this section Types

Link to this type run_at_options()
run_at_options() :: [
  date: Timex.Types.date(),
  year: Timex.Types.year(),
  month: Timex.Types.month(),
  day: Timex.Types.day(),
  hour: Timex.Types.hour(),
  minute: Timex.Types.minute(),
  second: Timex.Types.second(),
  microsecond: Timex.Types.microsecond()
]
Link to this type run_each_options()
run_each_options() :: [
  microseconds: integer(),
  milliseconds: integer(),
  seconds: integer(),
  minutes: integer(),
  hours: integer(),
  days: integer(),
  weeks: integer(),
  months: integer(),
  years: integer()
]

Link to this section Callbacks

Link to this callback run(term)
run(term()) :: term()

Callback that should implement task business logic that must be securely processed.