async cellfs
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user