Skip to content
Snippets Groups Projects
Commit e6933207 authored by Olga Arkhangelskaia's avatar Olga Arkhangelskaia Committed by Kirill Yukhin
Browse files

lib: fix comment in coio_task.h

According to code coio_call does not take a timeout as an argument,
however it was mentioned in the comment and usage example. This lead to
error in documentation. The patch fixes it.

Closes #4663
parent ca07088c
No related branches found
No related tags found
No related merge requests found
......@@ -131,8 +131,7 @@ coio_task_post(struct coio_task *task);
/**
* Create new eio task with specified function and
* arguments. Yield and wait until the task is complete
* or a timeout occurs.
* arguments. Yield and wait until the task is complete.
*
* This function doesn't throw exceptions to avoid double error
* checking: in most cases it's also necessary to check the return
......@@ -150,7 +149,7 @@ coio_task_post(struct coio_task *task);
* return open(filename, flags);
* }
*
* if (coio_call(openfile_cb, 0.10, "/tmp/file", 0) == -1)
* if (coio_call(openfile_cb, "/tmp/file", 0) == -1)
* // handle errors.
* ...
* @endcode
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment