---
title: signal
framework: mapkitjs
role: symbol
role_heading: Interface Property
path: mapkitjs/searchoptions/signal
---

# signal

A signal object allowing you to cancel the request.

## Declaration

```data
signal?: AbortSignal;
```

## Discussion

Discussion Pass an AbortSignal from an AbortController to allow the controller to cancel a pending search or autocomplete request. When the controller aborts, the promise it returns rejects with a DOMException whose name is "AbortError". const controller = new AbortController(); const search = new mapkit.Search();

try {     const data = await search.search("coffee", { signal: controller.signal });     // Handle results. } catch (error) {     if (error.name === "AbortError") {         // The request was canceled.     } }

// Cancel the request at any time: controller.abort();

## See Also

### Search options

- [addressFilter](mapkitjs/searchoptions/addressfilter.md)
- [coordinate](mapkitjs/searchoptions/coordinate.md)
- [includeAddresses](mapkitjs/searchoptions/includeaddresses.md)
- [includePhysicalFeatures](mapkitjs/searchoptions/includephysicalfeatures.md)
- [includePointsOfInterest](mapkitjs/searchoptions/includepointsofinterest.md)
- [language](mapkitjs/searchoptions/language.md)
- [limitToCountries](mapkitjs/searchoptions/limittocountries.md)
- [pointOfInterestFilter](mapkitjs/searchoptions/pointofinterestfilter.md)
- [region](mapkitjs/searchoptions/region.md)
- [regionPriority](mapkitjs/searchoptions/regionpriority.md)
