Skip to content

Shared mutable object in crossroads property handler #348

Answered by surban
Taha-Firoz asked this question in Q&A
Discussion options

You must be logged in to vote

You need to call PropContext::reply instead of returning the value directly, i.e. prop.reply(Ok(s.is_online)) in the last line of your async block.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@diwic
Comment options

@diwic
Comment options

@Taha-Firoz
Comment options

@Taha-Firoz
Comment options

@diwic
Comment options

Answer selected by Taha-Firoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants