{"version":3,"sources":["src/CompletionTriggers/Timer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;;;GAMG;AACH,qBAAa,KAAM,SAAQ,iBAAiB;IAE1C;;;;OAIG;gBACS,OAAO,EAAE,MAAM;IAId,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAMnC","file":"Timer.d.ts","sourcesContent":["'use strict';\n\nimport { CompletionTrigger } from './CompletionTrigger';\n\n/**\n * Waits for a specified amount of time.\n *\n * @export\n * @class Timer\n * @extends {CompletionTrigger}\n */\nexport class Timer extends CompletionTrigger {\n\n  /**\n   * Creates an instance of the Timer CompletionTrigger.\n   * @param {number} timeout ms to wait until timing out.\n   * @memberof Timer\n   */\n  constructor(timeout: number) {\n    super(timeout);\n  }\n\n  public async wait(): Promise<void> {\n    return new Promise<void>((resolve) => {\n      setTimeout(resolve, this.timeout);\n    });\n  }\n\n}\n"],"sourceRoot":"../../.."}