---
title: "AsyncResourceOptions | JavaScript maps SDK"
description: "Documentation for MapTiler SDK"
---

> For AI agents: a documentation index is available at [/llms.txt](https://docs.maptiler.com/llms.txt). Markdown versions of all pages are available by appending .md to any URL.

# Interface AsyncResourceOptions

interface AsyncResourceOptions {  
    [requireManualDestroy](#requiremanualdestroy)?: boolean;  
    [triggerAsyncId](#triggerasyncid)?: number;  
}

#### Hierarchy ([View Summary](https://docs.maptiler.com/sdk-js/api-reference/hierarchy/#Externals.AsyncResourceOptions))

-   AsyncResourceOptions
    -   [EventEmitterAsyncResourceOptions](https://docs.maptiler.com/sdk-js/api-reference/interfaces/Externals.EventEmitter.EventEmitterAsyncResourceOptions/)

##### Index

### Properties[](#properties)

[requireManualDestroy?](#requiremanualdestroy) [triggerAsyncId?](#triggerasyncid)

## Properties[](#properties-1)

### `Optional`requireManualDestroy[](#requiremanualdestroy)

requireManualDestroy?: boolean

Disables automatic `emitDestroy` when the object is garbage collected. This usually does not need to be set (even if `emitDestroy` is called manually), unless the resource's `asyncId` is retrieved and the sensitive API's `emitDestroy` is called with it.

#### Default[](#default)

```typescript
false
```

### `Optional`triggerAsyncId[](#triggerasyncid)

triggerAsyncId?: number

The ID of the execution context that created this async event.

#### Default[](#default-1)

```typescript
executionAsyncId()
```
