Add debug function

This commit is contained in:
Caitlin Hennessy
2017-11-16 16:28:10 -08:00
parent f27fb4d93c
commit ead69e3c6e
2 changed files with 15 additions and 0 deletions

View File

@ -252,6 +252,13 @@ namespace pxt.editor {
return loop()
}
downloadFileAsync(path: string, cb: (d: Uint8Array) => void) {
return this.lock.enqueue("file", () =>
this.streamFileOnceAsync(path, cb))
}
private initAsync() {
return Promise.resolve()
}