-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Provide batch_callback_once
in Scope
#1463
Labels
feature-request
A feature request
Comments
Agreed, since we already have the |
ctron
added a commit
to ctron/yew
that referenced
this issue
Aug 2, 2020
ctron
added a commit
to ctron/yew
that referenced
this issue
Aug 2, 2020
ctron
added a commit
to ctron/yew
that referenced
this issue
Aug 3, 2020
teymour-aldridge
pushed a commit
to teymour-aldridge/yew
that referenced
this issue
Sep 1, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the feature you'd like
For the
callback
method of theScope
struct a method namedcallback_once
exists, which accepts anFnOnce
parameter.I think a similar method (e.g.
batch_callback_once
) should be provided for thebatch_callback
function.Is your feature request related to a problem? Please describe. (Optional)
A closure which gets called only once, makes is easier to move (instead of clone) data. So using a
FnOnce
would make life easier in some situations.Describe alternatives you've considered (Optional)
Additional context (Optional)
Questionnaire
The text was updated successfully, but these errors were encountered: