Skip to content

Should handlers be functions only? #2321

Answered by aliemjay
marioidival asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry, I made a mistake. This should work for async:

.to(move || a.foo())

For non-async:

.to(move || {
    let response = a.foo();
    async { response }
})

Replies: 3 comments 11 replies

Comment options

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

@marioidival
Comment options

Comment options

You must be logged in to vote
9 replies
@aliemjay
Comment options

@marioidival
Comment options

@marioidival
Comment options

@aliemjay
Comment options

@aliemjay
Comment options

Answer selected by marioidival
Comment options

You must be logged in to vote
0 replies
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