Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.
This repository was archived by the owner on May 14, 2024. It is now read-only.

Q: read the last FENCE token without incrementing? #10

Closed

Description

@glycerine

To check if I have won an election, I'd like to read the value of the FENCE counter -- without adding to the fence token. Is this possible?

2nd question: is it possible to listen on a FENCE for changes, or does one need to poll?

Activity

  1. tidwall commented on Jan 14, 2017

    @tidwall
    Owner

    To check if I have won an election, I'd like to read the value of the FENCE counter -- without adding to the fence token. Is this possible?

    No. Right now it's only possible to increment the token and get the new value back.

    I would be trivial to add this feature, perhaps:

    FENCE token PEEK
    

    could return the current token value.

    2nd question: is it possible to listen on a FENCE for changes, or does one need to poll?

    At this time there's no way to listen for changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions