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

I'm writing wasm rust future Stream.  I haven't tested this yet, I don't want to tease out any undefined behavior.  Rust might be greedy and call poll_next when the cursor is not ready to be read...  It would be important to be able to ask if an operation has completed without having to sync with an onsuccess event.

In addition the examples don't cover the case where something falsy is in the dataset, so presumably some other way of detecting EOF  would be great.

A three state "readyState" for _working_, _readable_, and _reached-end_.

-- 
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

Received on Tuesday, 30 June 2020 04:23:36 UTC