---
schema_version: "1"
id: 279d3d2a5d3201f7e615cfd780f224a27f953262a939503a47cd4c4281fd8d79
title: Fetcher | @tableau/taco-toolkit - v2.1.0
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/api/webdataconnector/reference/classes/handlers.Fetcher.md
canonical_url: https://help.tableau.com/current/api/webdataconnector/en-us/reference/classes/handlers.Fetcher.html
source_site: help.tableau.com
content_type: documentation
content_hash: f8accbf5b95123f3c5ee5c1e6268b45ee7ad65b217e26bac43e20cdcf48b95fb
description: Documentation for @tableau/taco-toolkit
---
- [@tableau/taco-toolkit](https://help.tableau.com/current/api/webdataconnector/en-us/reference/index.html)
- [handlers](https://help.tableau.com/current/api/webdataconnector/en-us/reference/modules/handlers.html)
- [Fetcher](https://help.tableau.com/current/api/webdataconnector/en-us/reference/classes/handlers.Fetcher.html)

# Class Fetcher`Abstract`

An abstract class for implementing fetcher functionality that asynchronously retrieves data.

#### Example

```ts
class MyFetcher extends Fetcher {  async *fetch(options: FetchOptions): AsyncGenerator {    // Implementation to asynchronously retrieve data using the provided options.  }}
```

#### Hierarchy

- Fetcher

##### Index

### Constructors

[constructor](https://help.tableau.com/current/api/webdataconnector/en-us/reference/classes/handlers.Fetcher.html#constructor)

### Methods

[fetch](https://help.tableau.com/current/api/webdataconnector/en-us/reference/classes/handlers.Fetcher.html#fetch)

## Constructors

### constructor[](#constructor)

- new Fetcher(): [Fetcher](https://help.tableau.com/current/api/webdataconnector/en-us/reference/classes/handlers.Fetcher.html)[](#constructor.new_Fetcher)
- #### Returns [Fetcher](https://help.tableau.com/current/api/webdataconnector/en-us/reference/classes/handlers.Fetcher.html)

## Methods

### `Abstract` fetch[](#fetch)

- fetch(options): AsyncGenerator<unknown, any, unknown\>[](#fetch.fetch-1)
- The method to implement the fetching logic to retrieve data using the provided options.
    
    #### Parameters
    
    - ##### options: [FetchOptions](https://help.tableau.com/current/api/webdataconnector/en-us/reference/interfaces/handlers.FetchOptions.html)
    
    #### Returns AsyncGenerator<unknown, any, unknown\>

### Settings

#### Member Visibility

- Inherited

#### Theme

OSLightDark

### On This Page

- [constructor](#constructor)
- [fetch](#fetch)

Generated using [TypeDoc](https://typedoc.org/)