We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e48886 commit 0750a07Copy full SHA for 0750a07
coroutine.h
@@ -34,7 +34,12 @@ size_t coroutine_id(void);
34
// to wait until all the "child" coroutines have died.
35
size_t coroutine_alive(void);
36
37
+// Put the current coroutine to sleep until the non-blocking socket `fd` has avaliable data to read.
38
+// Trying to read from fd after coroutine_sleep_read() should not cause EAGAIN.
39
void coroutine_sleep_read(int fd);
40
+
41
+// Put the current coroutine to sleep until the non-blocking socket `fd` is ready to accept data to write.
42
+// Trying to write to fd after coroutine_sleep_write() should not cause EAGAIN.
43
void coroutine_sleep_write(int fd);
44
45
#ifdef __cplusplus
0 commit comments