Skip to content
This repository has been archived by the owner on Jul 15, 2024. It is now read-only.

schedule_idle not taking &self #95

Open
ennis opened this issue May 28, 2023 · 1 comment · May be fixed by #176
Open

schedule_idle not taking &self #95

ennis opened this issue May 28, 2023 · 1 comment · May be fixed by #176

Comments

@ennis
Copy link
Contributor

ennis commented May 28, 2023

Is there a reason why IdleHandle::schedule_idle takes a &mut self instead of just &self like add_idle_callback? The underlying function add_idle_token doesn't seem to require mut access in any of the backends.

@jneem
Copy link
Collaborator

jneem commented May 29, 2023

I haven't dug into the history to find out why, but I think it's fine to change it to &self

@DJMcNab DJMcNab linked a pull request Dec 28, 2023 that will close this issue
13 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants