# throwIfAborted

> **throwIfAborted**(`signal`): `void`

Defined in: [packages/synapse-core/src/utils/abort.ts:11](https://github.com/FilOzone/synapse-sdk/blob/5989c4b03ed2fe4cf8b1ef29efe1d4ff1ad4c7bc/packages/synapse-core/src/utils/abort.ts#L11)

Throw iso-web's AbortError if the signal has already been aborted.

Used before signing so an aborted call never triggers a wallet prompt.
Unlike `AbortSignal.prototype.throwIfAborted`, it throws the same AbortError
the HTTP requests reject with.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `signal` | [`AbortSignal`](https://developer.mozilla.org/docs/Web/API/AbortSignal) \| `undefined` |

## Returns

`void`