We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d790f1d commit 9c6765dCopy full SHA for 9c6765d
src/server/utilities.ts
@@ -179,6 +179,12 @@ namespace ts.server {
179
constructor(private readonly host: ServerHost) {
180
}
181
182
+ /**
183
+ * Wait `number` milliseconds and then invoke `cb`. If, while waiting, schedule
184
+ * is called again with the same `operationId`, cancel this operation in favor
185
+ * of the new one. (Note that the amount of time the canceled operation had been
186
+ * waiting does not affect the amount of time that the new operation waits.)
187
+ */
188
public schedule(operationId: string, delay: number, cb: () => void) {
189
const pendingTimeout = this.pendingTimeouts.get(operationId);
190
if (pendingTimeout) {
0 commit comments