mirror of
https://github.com/janet-lang/janet
synced 2025-03-09 01:38:09 +00:00

While C functions are not re-entrant, signaling from a C function can be used to implement async returns. When resuming a fiber that signalled from within a C function, the fiber is started after the instruction that emitted the signal. The resume argument is used as the return result from the c function.