Skip to content

Commit 14fdc68

Browse files
author
Vladimir I
committed
update on fix gh-830
Further improvement to cancell status and recommendations on canceled fibers termination
1 parent ffb0463 commit 14fdc68

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

doc/1.10/reference/reference_lua/fiber.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,10 +400,11 @@ recommended.
400400
.. NOTE::
401401

402402
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".
403+
Most types of calls will check whether the fiber.testcancel().
404404
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.
405+
We recommend application developers to implement an occasional checks with
406+
:ref:`fiber.testcancel() <fiber-testcancel>` and to end fiber's execution
407+
as soon as possible in case it has been cancelled.
407408

408409
**Example:**
409410

0 commit comments

Comments
 (0)