Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Commit

Permalink
feat: expose a promise that resolves when breakpoints have been applied
Browse files Browse the repository at this point in the history
  • Loading branch information
connor4312 committed Oct 8, 2019
1 parent b6d3a04 commit ffeee9d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/chrome/breakpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ export class Breakpoints {
// use methods getValueFromCommittedBreakpointsByUrl and setValueForCommittedBreakpointsByUrl
private _committedBreakpointsByUrl = new Map<string, ISetBreakpointResult[]>();
private _setBreakpointsRequestQ: Promise<any> = Promise.resolve();
public get breakpointsQueueDrained(): Promise<void> {
return this._setBreakpointsRequestQ;
}
public get committedBreakpointsByUrl(): Map<string, ISetBreakpointResult[]> {
return this._committedBreakpointsByUrl;
}
Expand Down Expand Up @@ -609,4 +612,4 @@ export class Breakpoints {
return null;
}

}
}

0 comments on commit ffeee9d

Please sign in to comment.