Skip to content

feedback: Module fiber #829

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

Closed
TarantoolBot opened this issue Jul 16, 2019 · 1 comment
Closed

feedback: Module fiber #829

TarantoolBot opened this issue Jul 16, 2019 · 1 comment
Assignees

Comments

@TarantoolBot
Copy link
Collaborator

<…>)
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

  • status: suspended
    name: lua
    id: 145
    ...

tarantool> f:cancel()

...

tarantool> f

  • the fiber is dead
    ...

tarantool> f:id()

  • 145
    ...

tarantool> box.info.version

  • 1.10.2-0-gc0d8063b6
    ...
@lenkis
Copy link
Contributor

lenkis commented Jul 16, 2019

part of #830

izmalk pushed a commit that referenced this issue Aug 20, 2019
Summirized the cancelled status issues in one NOTE and changed an example in fiber:cancel() description.
Also depended with #831  and #829
@izmalk izmalk closed this as completed Aug 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants