DenoDDeno
Powered by
andrewthauerA
Denoβ€’3y agoβ€’
1 reply
andrewthauer

How can I replace writeAllSync with the Streams API?

How would one best refactor the following code to use the Web Streams API as suggested by the deprecated stdlib streams module? I was hoping to not have to change this to async for now.

writeAllSync(Deno.stdout, this.encoder.encode(msg));
writeAllSync(Deno.stdout, this.encoder.encode(msg));
Deno banner
DenoJoin
Chat about Deno, a modern runtime for JavaScript and TypeScript.
20,934Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How can I replace vite with `deno bundle`?
QuillQQuill / help
9mo ago
Read CSV files inside zip file using the web streams API
FjordWardenFFjordWarden / help
3y ago
Reset position of terminal cursor when calling io.writeAllSync()
bombillazoBbombillazo / help
2y ago