Joshua Bell

Results 119 issues of Joshua Bell

When adding a file and the last block on the volume will be used, the block allocation fails and a bogus index file is created. **Repro:** * Create a 140k...

bug

Running Ciderpress on a Windows VM, with an HDV file residing on a network share mounted on Z:\, the "Load from file" functionality trying to write to a volume on...

bug

A common approach to atomically updating files is to write into a "temp" copy, then rename the temp into place over top of the original. (copy may be a primitive...

Inspired by the work over in https://github.com/inexorabletash/web-locks and suggested by @dominiccooney at TPAC 2016... Rather than the confusing usage of waitUntil(), we could do something like: ```js db.transaction(scope, mode, async...

Just capturing a quick note here: I was worried about the weirdness of this proposal during cursor iteration, where IDBRequest.promise returns a new Promise when continue/advance are called. But see:...

Over on https://gist.github.com/inexorabletash/8c122c84a65de65c35b3 @domenic objected to including `then()` and `catch()` helpers on IDBRequest. The pro of having those is that IDBRequest becomes a _thennable_ which makes usage cleaner in promise...

Let's dig up the old example of get-fetch-put: ``` js tx.waitUntil((async () => { const url = await tx.objectStore('urls').get(k); const request = await fetch(url); const text = await request.text(); await...

With the event-based API, an error on a request that is not prevented causes the transaction to abort: ``` js var tx = db.transaction('team', 'readwrite'); var store = tx.objectStore('team'); var...

Options include: 1. a Promise dependent on the promise the transaction is waiting on 2. just whatever is passed in 3. undefined 1 is redundant with `.complete` 2 is not...

As hinted at in #9 the state transitions are complicated. If all waiting promises resolve while performing event firing (which will dispatch to a target, execute microtasks, dispatch to the...