Skip to content

Accessing state from an async command (implicit elided lifetime not allowed here) #4317

Answered by FabianLars
alex-brook asked this question in Q&A
Discussion options

You must be logged in to vote

#2533

This is a known issue/limitation. You need to return a Result from async stateful commands. Something as simple as Result<(), ()> should be enough.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@alex-brook
Comment options

@hwmaier
Comment options

Answer selected by alex-brook
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