Replies: 2 comments 1 reply
-
Loop.run will return immediately since you have nothing on it |
Beta Was this translation helpful? Give feedback.
1 reply
-
I'm answering for what the initial issue asked, i.e. how to use Might be considered a duplicate of this: I solved it by using libuv and then add an active libuv native handle (that I need anyways) to it: Build uWS with // FIRST THING
// inject our own uv_loop into uWS.
uv_loop_t uv_task_loop;
uv_loop_init(&uv_task_loop);
auto taskLoop = uWS::Loop::get(&uv_task_loop);
// add an interrupt signal
uv_signal_t signal;
uv_signal_init(&uv_task_loop, &signal);
uv_signal_start(&signal, mySigIntHandler, SIGINT);
uv_signal_t * task_signal = &signal; This way the task loop remains alive, even when used without _Mark |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
This doesn't look like it has any effect. loop does not execute the method
Beta Was this translation helpful? Give feedback.
All reactions