async cellfs

This commit is contained in:
2026-02-25 17:43:01 -06:00
parent 9c1141f408
commit ecc1777b24
4 changed files with 483 additions and 252 deletions

View File

@@ -142,7 +142,7 @@ function mount(source, name) {
base_url: source,
get: function(path, callback) {
var url = source + '/' + path
$clock(function() {
$clock(function(_t) {
var resp = http.request('GET', url, null, null)
if (resp && resp.status == 200) {
callback(resp.body)
@@ -523,7 +523,7 @@ function get(path) {
f = fd.open(full, 'r')
acc = blob()
function next() {
function next(_t) {
var chunk = null
if (cancelled) return
chunk = fd.read(f, 65536)