I need to continue reading some files in a certain period. When a timeout timer event happen, I want to stop reading, close files, do some work, then exit uv_run(UV_RUN_DEFAULT).
At first, I tried set a expired flag in timer callback, then check expired flag in uv_fs_read's callback, but there's a situation: uv_fs_read's callback may not be called (eg: the file is empty) , so the expired flag does not work. So is there a way to solve this problem? -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
