fubark / cyber

Fast and concurrent scripting.
https://cyberscript.dev
MIT License
1.16k stars 38 forks source link

Implement Fiber.reset #85

Open Goju-Ryu opened 5 months ago

Goju-Ryu commented 5 months ago

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

fubark commented 5 months ago

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