Shopify.GraphQL.Limiter.ThrottleState (shopify_graphql v2.0.0-rc.5)

Link to this section Summary

Functions

Returns a Shopify.GraphQL.Limiter.ThrottleStatus struct from a Shopify.GraphQL.Response struct.

Link to this section Types

Specs

t() :: %Shopify.GraphQL.Limiter.ThrottleState{
  currently_available: integer(),
  maximum_available: integer(),
  restore_rate: integer()
}

Link to this section Functions

Specs

Returns a Shopify.GraphQL.Limiter.ThrottleStatus struct from a Shopify.GraphQL.Response struct.

Link to this function

throttle_for(throttle_state, to)

Specs

throttle_for(t(), :half | :max | non_neg_integer()) :: non_neg_integer()