File tree 1 file changed +7
-2
lines changed
doc/1.10/reference/reference_lua
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -399,7 +399,12 @@ recommended.
399
399
400
400
.. NOTE ::
401
401
402
- This exception cannot be caught by pcall or xpcall.
402
+ Even if you catch the exception, the fiber will stay cancelled.
403
+ Most type of calls will check for cancelled status of a fiber and
404
+ return an error.
405
+ However, some function (id, status, join) will not return error.
406
+ It is recommended to develop your applications in such way, that
407
+ cancelled fibers will stop executing and end as soon as possible.
403
408
404
409
**Example: **
405
410
@@ -515,7 +520,7 @@ recommended.
515
520
516
521
Cancel a fiber. Running and suspended fibers can be cancelled.
517
522
After a fiber has been cancelled, attempts to operate on it will
518
- cause errors, for example :ref: `fiber_object:id () <fiber_object-id >`
523
+ cause errors, for example :ref: `fiber_object:name () <fiber_object-name_get >`
519
524
will cause ``error: the fiber is dead ``.
520
525
521
526
:param fiber_object: generally this is an object referenced in the return
You can’t perform that action at this time.
0 commit comments