Skip to content

feedback: Wrong information in fiber module description #3131

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
Tracked by #3063
TarantoolBot opened this issue Sep 6, 2022 · 0 comments
Open
Tracked by #3063

feedback: Wrong information in fiber module description #3131

TarantoolBot opened this issue Sep 6, 2022 · 0 comments
Labels
factual error Factual error in functionality description reference [location] Tarantool manual, Reference part rewrite [nature] Revise existing text for structure/phrasing/terms server [area] Task relates to Tarantool's server (core) functionality

Comments

@TarantoolBot
Copy link
Collaborator

TarantoolBot commented Sep 6, 2022

Product: Tarantool
Audience/target: dev
Root document: https://www.tarantool.io/ru/doc/latest/reference/reference_lua/fiber/
SME: @ alyapunov

Details

More detailed info from the reporter:

"это работает, только если файбер был создан с помощью fiber.new() и стал доступным для присоединения путем fiber_object:set_joinable()." -- ошибочная информация

На самом деле join вместе с create() работает, и это более удобно, когда нужно запустить несколько файберов и дождаться результатов.

Не раскрыто, что убдет с join, если файбер уже успел выйти (ответ - все ок). Что будет, если вызвать join дважды (ответ - все упадет)


<…>.
Сейчас можно передать управление.

Вызов fiber_object:join().
|Как правило, следует вызвать fiber_object:join(), в противном случае, статус файбера может перейти в „suspended“ (приостановлен) после выполнения функции, а не „dead“ (недоступен).|

Параметры:
true_or_false – логическое значение, которое и<…>

https://www.tarantool.io/ru/doc/latest/reference/reference_lua/fiber/#fiber-object-set-joinable

Очень размытая формулировка. "Как правило" вообще убивает.
"может перейти в suspended". А может - и не перейти?
От чего это зависит, в какой ситуации будет какой расклад?

@patiencedaur patiencedaur changed the title feedback: Module fiber | Tarantool feedback: Wrong information in fiber module description Sep 7, 2022
@patiencedaur patiencedaur added reference [location] Tarantool manual, Reference part server [area] Task relates to Tarantool's server (core) functionality factual error Factual error in functionality description rewrite [nature] Revise existing text for structure/phrasing/terms labels Sep 7, 2022
@patiencedaur patiencedaur mentioned this issue Sep 7, 2022
10 tasks
@TarantoolBot TarantoolBot removed the 3sp label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
factual error Factual error in functionality description reference [location] Tarantool manual, Reference part rewrite [nature] Revise existing text for structure/phrasing/terms server [area] Task relates to Tarantool's server (core) functionality
Projects
None yet
Development

No branches or pull requests

2 participants