1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-02 17:01:14 -05:00
denoland-deno/ext/io
Luca Casonato 301c4f4d02 feat(core): sync io ops in core (#18603)
This commit adds op_read_sync and op_write_sync to core. These ops are
similar to op_read and op_write, but they are synchronous. Just like the
async ops, they operate on generic `deno_core::Resource` objects. These
now have new `read_byob_sync` and `write_sync` methods, with default
implementations throwing "NotSupported" errors, just like the async
counterparts.

There are no `write_all` or `read` equivalents, because the
optimizations they unlock are not useful in synchronous contexts.
2023-04-12 15:49:40 +02:00
..
12_io.js feat(core): sync io ops in core (#18603) 2023-04-12 15:49:40 +02:00
Cargo.toml 1.32.3 (#18558) 2023-04-01 18:51:46 -04:00
lib.rs feat(core): sync io ops in core (#18603) 2023-04-12 15:49:40 +02:00
README.md refactor(runtime): factor out deno_io extension crate (#18001) 2023-03-05 00:39:48 +00:00

deno_io

This crate provides IO primitives for other Deno extensions, this includes stdio streams and abstraction over File System files.