A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://hexdocs.pm/dataloader/Dataloader.Source.html below:

Dataloader.Source — dataloader v2.0.2

View Source Dataloader.Source protocol (dataloader v2.0.2) Summary Types

All the types that implement this protocol.

Functions

Returns whether or not the source should be running synchronously or asynchronously with respect to the process making Dataloader function calls.

Fetch the result found under the given batch and item keys.

Enqueue an item to be loaded under a given batch

Determine if there are any batches that have not yet been run.

Put a value into the results.

Run any batches queued up for this source.

Returns the timeout (in ms) for the source.

Types
@type batch_key() :: term()
@type item_key() :: term()

All the types that implement this protocol.

Functions

Returns whether or not the source should be running synchronously or asynchronously with respect to the process making Dataloader function calls.

Fetch the result found under the given batch and item keys.

Enqueue an item to be loaded under a given batch

@spec pending_batches?(t()) :: boolean()

Determine if there are any batches that have not yet been run.

Put a value into the results.

Useful for warming caches. The source is permitted to reject the value.

Run any batches queued up for this source.

Returns the timeout (in ms) for the source.

This is important for ensuring the dataloader obeys the timeouts when running multiple sources concurrently


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4