MCPcopy Create free account
hub / github.com/awslabs/llrt / write

Function write

llrt_core/src/modules/js/stream.ts:66–74  ·  view source on GitHub ↗
(chunk: any)

Source from the content-addressed store, hash-verified

64Writable.toWeb = function (writable: any) {
65 return new WritableStream({
66 write(chunk: any) {
67 return new Promise<void>((resolve) => {
68 if (!writable.write(chunk)) {
69 writable.once("drain", resolve);
70 } else {
71 resolve();
72 }
73 });
74 },
75 close() {
76 return new Promise<void>((resolve) => {
77 writable.end(resolve);

Callers 5

write_historyFunction · 0.50
generate_bytecode_cacheFunction · 0.50
compress_bytecodeFunction · 0.50
compile_fileFunction · 0.50
given_fileFunction · 0.50

Calls 4

callbackFunction · 0.85
onceMethod · 0.80
writeMethod · 0.65
resolveFunction · 0.50

Tested by

no test coverage detected