Skip to content

Commit 90389ad

Browse files
fix(core): hide implementation details of ExperimentalPendingTasks (#55516)
The ExperimentalPendingTasks service was accidently exposing one of its internal fields as a public one. This commit fixes this by marking the field in question as private. PR Close #55516
1 parent 3667352 commit 90389ad

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

goldens/public-api/core/index.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
55
```ts
66

7-
import { BehaviorSubject } from 'rxjs';
87
import { Observable } from 'rxjs';
98
import { SIGNAL } from '@angular/core/primitives/signals';
109
import { SignalNode } from '@angular/core/primitives/signals';
@@ -678,8 +677,6 @@ export interface ExistingSansProvider {
678677
export class ExperimentalPendingTasks {
679678
add(): () => void;
680679
// (undocumented)
681-
internalPendingTasks: ɵPendingTasks;
682-
// (undocumented)
683680
static ɵfac: i0.ɵɵFactoryDeclaration<ExperimentalPendingTasks, never>;
684681
// (undocumented)
685682
static ɵprov: i0.ɵɵInjectableDeclaration<ExperimentalPendingTasks>;

packages/core/src/pending_tasks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export class PendingTasks implements OnDestroy {
8080
providedIn: 'root',
8181
})
8282
export class ExperimentalPendingTasks {
83-
internalPendingTasks = inject(PendingTasks);
83+
private internalPendingTasks = inject(PendingTasks);
8484
/**
8585
* Adds a new task that should block application's stability.
8686
* @returns A cleanup function that removes a task when called.

0 commit comments

Comments
 (0)