Skip to content

Add IDBCursor.close() #185

@inexorabletash

Description

@inexorabletash

Cursors require maintaining a fair bit of state. Implementations may also do optimizations such as pre-fetching records. This state can only be completely released when either the cursor hits the end of its range or both the request and the cursor have been GC'd (since there's an implicit bidirectional dependency), or when the transaction ends.

It might be nice to expose a close() method on cursors to allow web apps to signal that a cursor can be tidied up prior transaction closing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions