Skip to content

Is there any way to create a us_timer for custom use? #964

Answered by ghost
summerinsects asked this question in Q&A
Discussion options

You must be logged in to vote

Yes. Loop::get() returns a Loop * but all pointers are convertible to their uSockets counterpart. So Loop * is convertible to us_loop_t * and from that you can us_create_timer

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant
Converted from issue

This discussion was converted from issue #964 on December 09, 2020 02:50.