Is there any way to create a us_timer for custom use? #964
Answered
by
ghost
summerinsects
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
ghost
Nov 12, 2019
Replies: 2 comments
-
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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