-
Notifications
You must be signed in to change notification settings - Fork 43
Improve documentation on fibers #830
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
Comments
(1) (2) |
@Totktonada is this text ok with you? |
I suggest to pcall the entire function (othside of a loop) and place fiber.testcancel() within the loop. Then perform cleanup actions after the pcall. The change for the example above would look so:
The reason why the original code does not perform The test is okay. As a reader I would want to know more about 'Most types of calls': is it just about Nit: 'status checks' means fiber.status()? Or fiber.testcancel()? It is unclear. |
Fix gh-825 feedback: Submodule box.index Fix gh-857 feedback: Модель данных Fix gh-856 feedback: Access control Fix gh-853 feedback: Functions for transaction management Fix gh-848 feedback: Submodule box.index Fix gh-834 Использование бинарного пакета Fix gh-867 feedback: Access control Fix gh-866 feedback: Триггеры Fix gh-865 feedback: Триггеры Fix gh-864 feedback: Рекомендации по Lua-синтаксису Fix gh-861 feedback: Модуль http Fix gh-869 Сonfusing wording in box.backup page Fix gh-860 vshard.router/storage.sync miss return value documentation Fix gh-830 Improve documentation on fibers Fix gh-850 Add more info about connectors
(1) about fiber.testcancel()
Sergey Й, [16 Jul 2019 at 17:18:33]:
fiber.testcancel() - это магическая функция? Ее exception нельзя перехватить?
для сравнения
Где-нибудь в доках есть объяснение?
(2) about fiber_object.cancel()
Sergey Й, [16 Jul 2019 at 17:28:34]:
еще по докам
https://www.tarantool.io/en/doc/1.10/reference/reference_lua/fiber/#lua-function.fiber_object.cancel
No, the real behavior is different!
The text was updated successfully, but these errors were encountered: