Skip to content

Window::request_animation_frame with callback with an argument? #4012

Answered by daxpedda
g-braeunlich asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed, you are free to define parameters yourself in Closures.

In this case Closure<dyn FnMut(f64)> would be appropriate.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by g-braeunlich
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