Skip to content

Adding read_with_seq method #11

Description

@extremeandy

Would you be open to an MR adding a new method read_with_seq which returns the current value of seq (i.e. seq1 which was loaded and compared with seq2)?

I'd like to compose a channel around SeqLock which would behave like tokio::watch except with lock-free writes. It would be useful to be able to use the seq number when reading to be able to determine whether or not the data had been written since last read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions