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

Initial Event Loop Run #3333

Closed
DasLixou opened this issue Dec 27, 2023 · 4 comments
Closed

Initial Event Loop Run #3333

DasLixou opened this issue Dec 27, 2023 · 4 comments
Labels
C - needs discussion Direction must be ironed out S - api Design and usability

Comments

@DasLixou
Copy link

I have a value that is taken by a function and is not Clone, and i need to call that function on init together with the event loop window target. Now there is Event::NewEvents(StartCause::Init) but that could theoretically be called multiple times so the rust analyzer errors.
Could we have another impl FnOnce as a parameter that is called on the beginning?

@madsmtm madsmtm added S - api Design and usability C - needs discussion Direction must be ironed out labels Dec 27, 2023
@madsmtm
Copy link
Member

madsmtm commented Dec 27, 2023

This is being worked on, see #3073.

@DasLixou
Copy link
Author

This is being worked on, see #3073.

Last Update was 4 months ago, any reason this is blocked?

@madsmtm
Copy link
Member

madsmtm commented Dec 27, 2023

Previously, mostly man-hours and motivation, although also that the desired design wasn't properly fleshed out.

Currently there's talk on Matrix about rewriting certain things in Winit, so that's also somewhat blocking progress here (I know that's a terrible answer, but that is roughly the status quo).

@madsmtm
Copy link
Member

madsmtm commented Dec 27, 2023

Anyhow, am gonna close this as a duplicate of #2903, let the discussion continue there.

@madsmtm madsmtm closed this as not planned Won't fix, can't repro, duplicate, stale Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C - needs discussion Direction must be ironed out S - api Design and usability
Development

No branches or pull requests

2 participants