MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / write

Function write

packages/node/src/testing/screen.ts:69–77  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

67
68 let pending = Promise.resolve();
69 const write = async (data: string): Promise<void> => {
70 pending = pending.then(
71 () =>
72 new Promise<void>((resolve) => {
73 term.write(data, resolve);
74 }),
75 );
76 await pending;
77 };
78
79 const flush = async (): Promise<void> => {
80 await pending;

Callers 1

mainFunction · 0.50

Calls 1

writeMethod · 0.65

Tested by

no test coverage detected