GSS.Client.Request (elixir_google_spreadsheets v0.4.0)
Worker of Request subscribed to Limiter, call request to API and send an answer to Client.
Summary
Functions
Callback implementation for GenStage.handle_events/3
.
Set the subscription to manual to control when to ask for events
Callback implementation for GenStage.init/1
.
Starts an request worker linked to the current process. Takes events from Limiter and send requests through Finch
Types
Functions
@spec handle_events([GSS.Client.event()], GenStage.from(), state()) :: {:noreply, [], state()}
Callback implementation for GenStage.handle_events/3
.
Set the subscription to manual to control when to ask for events
Callback implementation for GenStage.init/1
.
@spec start_link(options()) :: GenServer.on_start()
Starts an request worker linked to the current process. Takes events from Limiter and send requests through Finch
Options
:name
- used for name registration as described in the "Name registration" section of the module documentation. Default isElixir.GSS.Client.Request
:limiters
- list of limiters with max_demand options. For example[{Elixir.GSS.Client.Limiter, max_demand: 1}]
.