Skip to content

Add .map variant to RecordCursor that supports changing a result's continuation #1663

Closed

Description

@alecgrieser

The .map method on a RecordCursor currently allows the user to modify the results returned by a record cursor, but the update can only change the value. There's not a variant that allows the user to update the result's continuation. This might be useful if, for example, the user wants to wrap the returned continuation in their own wrapping continuation (perhaps with additional context). The user does need to do a bit of work when resuming the cursor to extract the original continuation (or whatever alternative they want to go with), but it still seems like a useful feature to have.

Activity

  1. added
    enhancement
    on May 10, 2022
  2. self-assigned this
    on May 10, 2022
  3. added 3 commits that reference this issue on May 10, 2022
    7b2c34d
    051d42e
    0017300
  4. added a commit that references this issue on May 19, 2022
    f0bda52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions