Re: [w3c/IndexedDB] [Cursor] got value flag. (#339)

I agree, that's what I get from the docs and other JS examples.  I think I was wondering if there would ever be a higher level abstraction or if my implementation needed to implement this also.

https://gitlab.com/cheako/websuite-rs/-/blob/59bd04af35d8a8e27f63adb9984378db81658529/idb/src/lib.rs#L425

It's hard to say what I was thinking a year ago, though.  Now looking at it, I don't know why I don't just have a setter/getter for an Option<Result<usize, JsValue>> that is effectively an onsuccess counter or holding the onerror.  With another getter/setter counting the number of successes processed.  I think I just thought that `ready_state()` should be the/a single getter I'm looking for.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/IndexedDB/issues/339#issuecomment-855336808

Received on Sunday, 6 June 2021 04:49:16 UTC