Skip to content

Is it ok to send messages programmatically with Command::perform(std::future::ready(1), Message::Number) #1895

Closed Answered by hecrj
lucatrv asked this question in Q&A
Discussion options

You must be logged in to vote

Why? Create a function for the logic that processes Message::Number and just call it when needed.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@hecrj
Comment options

Answer selected by lucatrv
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
2 participants