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

The RateLimiter takes an %ExAirtable.RateLimiter.Request{}, runs its :job and (optionally) sends the results to the :callback function as arguments.

Any arguments defined in the :callback %Job{} will be prepended to the function arguments, with the results of :job being the final argument passed.

Link to this section Summary

Types

t()

A request to an ExAirtable.RateLimiter.

Functions

Create a request

Run a given request, piping the result to the given callback function (if any).

Link to this section Types

Specs

t() :: %ExAirtable.RateLimiter.Request{
  callback: ExAirtable.RateLimiter.Job.t(),
  created: DateTime.t(),
  job: ExAirtable.RateLimiter.Job.t()
}

A request to an ExAirtable.RateLimiter.

Link to this section Functions

Create a request

Run a given request, piping the result to the given callback function (if any).

If arguments are given in the request.callback, then the result of running the request.job will be the final argument after the arguments specified in the callback.