Skip to content
Discussion options

You must be logged in to vote

I've grappled with the semantics of it quite a bit and went back and forth on it. It's philosophically async, because it amounts to a side-effect which will be executed later, but it's mechanically not async, since there's nothing to wait for, not even completion.

Note that in the CommandContext, it no longer is: https://github.com/redbadger/crux/blob/master/crux_core/src/command/context.rs#L40

I suppose it would be possible to make it return a future which resolves to () on 'completion', i.e. once the notification is delivered -taken off the effects channel using Command::effects(). Only then would the enclosing future be allowed to proceed.

As a general suggestion, don't look too closel…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Patryk27
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
Converted from issue

This discussion was converted from issue #398 on June 27, 2025 18:33.