ExAirtable.RateLimiter.Job (ExAirtable v0.2.9) View Source

Defines a struct that is handy for passing data back and forth between functions, as data.

"Job" = Module, Function, Arguments

Link to this section Summary

Types

t()

A single job to be run - a module, function, and argument.

Functions

Run a given %Job{}.

Link to this section Types

Specs

t() :: %ExAirtable.RateLimiter.Job{
  arguments: [term()],
  function: function(),
  module: module()
}

A single job to be run - a module, function, and argument.

This is not to be confused with the mfa() type, which is a "module, function, arity" triplet. In this case we need to pass the actual arguments, and we'll let the system take care of pattern-matching for arity.

Link to this section Functions

Run a given %Job{}.