Skip to content

Registering timers within nested function #88

Answered by eureka-cpu
eureka-cpu asked this question in Q&A
Discussion options

You must be logged in to vote

I managed to be able to get a mutable handle to the reaper_session variable using once_cell::sync::OnceCell<std::sync::Mutex<ReaperSession>> then registering and unregistering timers that way, but I"m not sure if that's how it's intended to be used.

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eureka-cpu
Comment options

Answer selected by eureka-cpu
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@eureka-cpu
Comment options

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