1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 08:15:13 +00:00

Add timeouts to net functions.

Further debugging of the general timeout system, as well
as having a single fiber wait on multiple state machines (select).
This commit is contained in:
Calvin Rose
2020-07-19 19:41:12 -05:00
parent df145f4bc9
commit 553b4d9428
9 changed files with 66 additions and 36 deletions

View File

@@ -1286,6 +1286,10 @@ static JanetSignal janet_continue_no_check(JanetFiber *fiber, Janet in, Janet *o
JanetFiberStatus old_status = janet_fiber_status(fiber);
#ifdef JANET_EV
janet_cancel(fiber);
#endif
/* Continue child fiber if it exists */
if (fiber->child) {
if (janet_vm_root_fiber == NULL) janet_vm_root_fiber = fiber;