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.
Would you be open to an MR adding a new method
read_with_seqwhich returns the current value of seq (i.e.seq1which was loaded and compared withseq2)?I'd like to compose a channel around
SeqLockwhich would behave liketokio::watchexcept 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.