Skip to content

no async in sync::watch::reciever::borrow_and_update() #6271

Answered by Darksonn
MagnumTrader asked this question in General
Discussion options

You must be logged in to vote

What the docs suggest is using

rx.changed().await;
let x = rx.borrow_and_update();

instead of

rx.changed().await;
let x = rx.borrow();

So both versions have an .await.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@MagnumTrader
Comment options

@Darksonn
Comment options

Answer selected by hawkw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants