Loader.WorkResponse (loader v0.3.1)

Internal data structure used to represent the results of executing a WorkSpec

properties

Properties

  • :data - whatever important data is returned by the work

  • :response_time - must be an integer number, in microseconds, which is the "client-side" view of how long the work took. I recommend using System.monotonic_time/0 or :timer.tc/1

Link to this section Summary

Link to this section Types

@type t() :: %Loader.WorkResponse{
  data: any(),
  kind: :ok | :error,
  response_time: integer()
}