MCPcopy Create free account
hub / github.com/angular/dev-infra / __awaiter2

Function __awaiter2

github-actions/browserstack/set-browserstack-env.js:19832–19858  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

19830 * @returns {Summary} summary instance
19831 */
19832 clear() {
19833 return __awaiter(this, void 0, void 0, function* () {
19834 return this.emptyBuffer().write({ overwrite: true });
19835 });
19836 }
19837 /**
19838 * Returns the current summary buffer as a string
19839 *
19840 * @returns {string} string of summary buffer
19841 */
19842 stringify() {
19843 return this._buffer;
19844 }
19845 /**
19846 * If the summary buffer is empty
19847 *
19848 * @returns {boolen} true if the buffer is empty
19849 */
19850 isEmptyBuffer() {
19851 return this._buffer.length === 0;
19852 }
19853 /**
19854 * Resets the summary buffer without writing to summary file
19855 *
19856 * @returns {Summary} summary instance
19857 */
19858 emptyBuffer() {
19859 this._buffer = "";
19860 return this;
19861 }

Callers 2

existsFunction · 0.70
tryGetExecutablePathFunction · 0.70

Calls 3

stepFunction · 0.70
nextMethod · 0.45
applyMethod · 0.45

Tested by

no test coverage detected