From e6933207f769ca3b9b4277901477138dd6d751fa Mon Sep 17 00:00:00 2001 From: Olga Arkhangelskaia <arkholga@tarantool.org> Date: Wed, 4 Dec 2019 00:51:10 +0300 Subject: [PATCH] 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 --- src/lib/core/coio_task.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/core/coio_task.h b/src/lib/core/coio_task.h index e81e10ccaf..29b144deaa 100644 --- a/src/lib/core/coio_task.h +++ b/src/lib/core/coio_task.h @@ -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 -- GitLab