MCPcopy
hub / github.com/hcengineering/platform / push

Method push

plugins/recorder-resources/src/stream.ts:38–53  ·  view source on GitHub ↗
(blob: Blob)

Source from the content-addressed store, hash-verified

36 }
37
38 public push (blob: Blob): void {
39 if (this.done) {
40 console.warn('ChunkReader: push into closed stream')
41 // close just in case someone is waiting for a chunk
42 if (this.awaitingResolve !== null) {
43 this.awaitingResolve({ done: true, value: undefined })
44 }
45 return
46 }
47
48 this.chunks.push(blob)
49 if (this.awaitingResolve !== null) {
50 this.awaitingResolve(this.read())
51 this.awaitingResolve = null
52 }
53 }
54
55 public close (): void {
56 this.done = true

Callers 15

createBatchesMethod · 0.45
handleFailedEventsMethod · 0.45
addEventMethod · 0.45
handleErrorMethod · 0.45
normalizeHighlightTagsFunction · 0.45
validateProjectTypeMethod · 0.45
validateProjectMethod · 0.45
validateTeamspaceMethod · 0.45
validateIssueMethod · 0.45
validateDocumentMethod · 0.45

Calls 2

readMethod · 0.95
warnMethod · 0.45

Tested by 7

createIssuesFunction · 0.36
createComponentsFunction · 0.36
createMilestonesFunction · 0.36
waitAndPushResultFunction · 0.36
genMinModelFunction · 0.36
genMinModelFunction · 0.36
genMinModelFunction · 0.36