We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffb0463 commit 14fdc68Copy full SHA for 14fdc68
doc/1.10/reference/reference_lua/fiber.rst
@@ -400,10 +400,11 @@ recommended.
400
.. NOTE::
401
402
Even if you catch the exception, the fiber will remain cancelled.
403
- Most types of calls will check if the fiber's status is "cancelled".
+ Most types of calls will check whether the fiber.testcancel().
404
However, some functions (``id``, ``status``, ``join`` etc.) will return no error.
405
- We recommend application developers to implement status checks in the code so that
406
- cancelled fibers would end as soon as possible.
+ We recommend application developers to implement an occasional checks with
+ :ref:`fiber.testcancel() <fiber-testcancel>` and to end fiber's execution
407
+ as soon as possible in case it has been cancelled.
408
409
**Example:**
410
0 commit comments