1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00
denoland-deno/core/examples
Aaron O'Mullan 375ce63c63
feat(core): streams (#12596)
This allows resources to be "streams" by implementing read/write/shutdown. These streams are implicit since their nature (read/write/duplex) isn't known until called, but we could easily add another method to explicitly tag resources as streams.

`op_read/op_write/op_shutdown` are now builtin ops provided by `deno_core`

Note: this current implementation is simple & straightforward but it results in an additional alloc per read/write call

Closes #12556
2021-11-09 19:26:17 +01:00
..
disable_ops.rs feat(core): facilitate op-disabling middleware (#11858) 2021-08-31 13:08:16 +02:00
hello_world.rs refactor: unify JavaScript script execution method (#11043) 2021-06-22 01:45:41 +02:00
http_bench_json_ops.js feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00
http_bench_json_ops.rs feat(core): streams (#12596) 2021-11-09 19:26:17 +01:00