You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<…>)
Cancel a fiber. Running and suspended fibers can be cancelled.|
After a fiber has been cancelled, attempts to operate on it will
cause errors, for example fiber_object:id()
will cause error: the fiber is dead.|
Parameters:
fiber_object – generally this is an object referenc<…>
https://www.tarantool.io/en/doc/1.10/reference/reference_lua/fiber/#lua-function.fiber_object.cancel
The documentation lies.
tarantool> f = fiber.create(fiber.sleep, 999)
...
tarantool> f
name: lua
id: 145
...
tarantool> f:cancel()
...
tarantool> f
...
tarantool> f:id()
...
tarantool> box.info.version
...
The text was updated successfully, but these errors were encountered: