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

Function __awaiter2

github-actions/bazel/configure-remote/configure-remote.js:19835–19861  ·  view source on GitHub ↗
(thisArg, _arguments, P, generator)

Source from the content-addressed store, hash-verified

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

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