cyber icon indicating copy to clipboard operation
cyber copied to clipboard

Implement Fiber.reset

Open Goju-Ryu opened this issue 1 year ago • 1 comments

When reading the concurrency section on fibers I had some trouble understanding why fiber.reset() and fiber.status() was called in example only defining a fiber called task. After reading through some documentation and testing in the playground I have come to the conclusion that it is probably an error of the documentation.

The examples in question are the following: https://github.com/fubark/cyber/blob/f3bda254d2f84ba0b7bc7667920c75c57839ded4/docs/docs.md?plain=1#L2364-L2402

Goju-Ryu avatar Mar 11 '24 15:03 Goju-Ryu

Yep, that's a typo. Also, Fiber.reset hasn't been implemented.

fubark avatar Mar 11 '24 22:03 fubark