MCPcopy Index your code
hub / github.com/omkarcloud/botasaurus / performWrite

Method performWrite

js/botasaurus-server-js/src/ndjson.ts:31–41  ·  view source on GitHub ↗
(content: any)

Source from the content-addressed store, hash-verified

29 }
30
31 performWrite(content: any): void | PromiseLike<void> {
32 return new Promise((resolve) => {
33 if (!this.writeStream.write(content)) {
34 this.writeStream.once('drain', () => {
35 resolve() // Resolve the promise if write is successful
36 })
37 } else {
38 resolve() // Resolve the promise if write is successful
39 }
40 })
41 }
42
43 end(): Promise<void> {
44 if (!this.writeStream){

Callers 6

pushMethod · 0.95
preStartMethod · 0.45
pushMethod · 0.45
preEndMethod · 0.45
preStartMethod · 0.45
pushMethod · 0.45

Calls 1

writeMethod · 0.80

Tested by

no test coverage detected