Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

watch::Sender: Modify and send value conditionally #4591

Merged
merged 6 commits into from May 3, 2022

Commits on Mar 31, 2022

  1. watch::Sender: Modify and send value conditionally

    Add a function that is more versatile than send_modify(). The result of
    the passed closure indicates if the mutably borrowed value has actually
    been modified or not. Receivers are only notified if the value has been
    modified as indicated by the sender.
    
    Signed-off-by: Uwe Klotz <uwe.klotz@slowtec.de>
    uklotzde committed Mar 31, 2022
    Copy the full SHA
    c713603 View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2022

  1. watch::Sender Streamline control flow in send_if_modified()

    Avoid using mutable local variables.
    uklotzde committed Apr 3, 2022
    Copy the full SHA
    2acc5de View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    6bd5cc5 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2022

  1. Copy the full SHA
    e577371 View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2022

  1. Copy the full SHA
    0e53b81 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2022

  1. Copy the full SHA
    2269791 View commit details
    Browse the repository at this point in the history