Table of Contents

Class AbortController

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The AbortController interface represents a controller object that allows you to abort one or more Web requests as and when desired.

[Value("AbortController")]
public class AbortController
Inheritance
AbortController
Derived
Inherited Members

Remarks

You can create a new AbortController object using the AbortController() constructor. Communicating with an asynchronous operation is done using an AbortSignal object.

-Fetch API
-Abortable Fetch by Jake Archibald

See also on MDN

Constructors

AbortController()

The AbortController() constructor creates a new AbortController object instance.

public AbortController()

Remarks

Properties

Signal

The signal read-only property of the AbortController interface returns an AbortSignal object instance, which can be used to communicate with/abort an asynchronous operation as desired.

[Value("signal")]
public AbortSignal Signal { get; }

Property Value

AbortSignal

An AbortSignal object instance.

Remarks

Methods

Abort(dynamic)

The abort() method of the AbortController interface aborts an asynchronous operation before it has completed.
This is able to abort fetch requests, the consumption of any response bodies, or streams.

[Value("abort")]
public GlobalObject.Undefined Abort(dynamic reason = null)

Parameters

reason dynamic

Returns

GlobalObject.Undefined

None (GlobalObject.Undefined).

Remarks