# abort-controller **Repository Path**: ohos-rs/abort-controller ## Basic Information - **Project Name**: abort-controller - **Description**: AbortController for OpenHarmony based on `emitter`. - **Primary Language**: TypeScript - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-04-07 - **Last Updated**: 2024-04-07 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # @ohos-rs/abort-controller AbortController for OpenHarmony based on `emitter`. > The bulk of the code in this project is derived from [node-abort-controller](https://github.com/southpolesteve/node-abort-controller), with certain alterations made to suit the features of HarmonyOS. ## Required API Version >= 11 ## Install ```shell ohpm install @ohos-rs/abort-controller ``` ## Usage ```ts const controller = new AbortController(); asyncFib(20, controller.signal).catch((e: ESObject) => { console.error(e) // Error: AbortError }) controller.abort() ```