Skip to content

Latest commit

 

History

History
46 lines (28 loc) · 1.43 KB

FetchTask.md

File metadata and controls

46 lines (28 loc) · 1.43 KB

@happy-ts/fetch-tDocs


@happy-ts/fetch-t / FetchTask

Interface: FetchTask<T>

Defines the structure and behavior of a fetch task, including the ability to abort the task and check its status.

Type Parameters

Type Parameter Description
T The type of the data expected in the response.

Properties

Property Modifier Type Description Defined in
aborted readonly boolean Indicates whether the fetch task has been aborted. defines.ts:27
response readonly FetchResponse<T, any> The response of the fetch task, represented as an AsyncResult. defines.ts:32

Methods

abort()

abort(reason?): void

Aborts the fetch task, optionally with a reason for the abortion.

Parameters

Parameter Type Description
reason? any An optional parameter to indicate why the task was aborted.

Returns

void

Defined in

defines.ts:22