Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

// flowlint unsafe-getters-setters:off

import {AbortSignal, abortSignal, createAbortSignal} from './AbortSignal';
import type {AbortSignal} from './AbortSignal';

const SIGNAL_KEY: symbol = Symbol('aborted');

Expand All @@ -47,7 +47,7 @@ export class AbortController {

constructor() {
// $FlowExpectedError[prop-missing]
this[SIGNAL_KEY] = createAbortSignal();
this[SIGNAL_KEY] = require('./AbortSignal').createAbortSignal();
}

/**
Expand All @@ -61,7 +61,7 @@ export class AbortController {
* Abort and signal to any observers that the associated activity is to be aborted.
*/
abort(reason: unknown): void {
abortSignal(reason, getSignal(this));
require('./AbortSignal').abortSignal(reason, getSignal(this));
}
}

Expand Down
Loading