summaryrefslogtreecommitdiff
path: root/ext/cache/01_cache.js
diff options
context:
space:
mode:
authorLuca Casonato <hello@lcas.dev>2022-10-10 10:28:35 +0200
committerGitHub <noreply@github.com>2022-10-10 10:28:35 +0200
commit1ab3691b091e34ffa5a0b8f2cd18a87da8c4930c (patch)
tree919c07adfc4f1f9818ec6827adedf17d7a71e2f5 /ext/cache/01_cache.js
parent4d6aed1b528efc9bdac7cce7922259f5c703ec55 (diff)
feat(core): add Deno.core.writeAll(rid, chunk) (#16228)
This commit adds a new op_write_all to core that allows writing an entire chunk in a single async op call. Internally this calls `Resource::write_all`. The `writableStreamForRid` has been moved to `06_streams.js` now, and uses this new op. Various other code paths now also use this new op. Closes #16227
Diffstat (limited to 'ext/cache/01_cache.js')
-rw-r--r--ext/cache/01_cache.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/cache/01_cache.js b/ext/cache/01_cache.js
index fa0b68037..afde7f789 100644
--- a/ext/cache/01_cache.js
+++ b/ext/cache/01_cache.js
@@ -148,7 +148,7 @@
await core.shutdown(rid);
break;
}
- await core.write(rid, value);
+ await core.writeAll(rid, value);
}
} finally {
core.close(rid);