Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

let cnd_signal() take .frequency arg #1729

Open
maxheld83 opened this issue Jul 6, 2024 · 0 comments
Open

let cnd_signal() take .frequency arg #1729

maxheld83 opened this issue Jul 6, 2024 · 0 comments

Comments

@maxheld83
Copy link
Member

maxheld83 commented Jul 6, 2024

I want to separately construct conditions with *_cnd() and signal them with cnd_signal().
As far as I can see, it is currently not possible to set a .frequency (and id) for a condition thus signaled,
though this is possible when creating and signaling in one go with, say inform().

There may be a good reason for this, so apologies if this doesn't make sense.

I was hoping for a .frequency (and id) argument to cnd_signal(), but could not find that.

It makes sense to me that you'd set .frequency in cnd_signal(), not *_cnd(), since cnd_signal() is the place where you emit the side-effect.
(Also, setting .frequency in *.cnd() could get quite thorny if these conditions are chained together).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant