Commit Graph
6 Commits
Author SHA1 Message Date
Bob Nystrom 1be81bde81 feat: allow passing initial value to fiber function parameter on first call
When a fiber is started for the first time via call() or transfer(), the value argument is now bound to the fiber's function parameter if it takes one. Previously, the first value was always ignored. Also adds runtime error for fibers created with functions taking more than one parameter, and updates documentation and tests accordingly.
2017-10-20 03:45:13 +00:00
Bob Nystrom 39983d6246 docs: clarify Fiber.abort and error behavior with null handling and updated examples 2017-10-05 13:50:45 +00:00
aaronduino 3274b6f0b6 fix: document Fiber.abort null behavior and add Fiber.try/error docs
Add documentation for Fiber.abort accepting null message without raising an error, and introduce new Fiber.try method and error property for capturing runtime errors from fibers.
2017-09-17 04:38:35 +00:00
Bob Nystrom 5703a8dfa2 docs: add List.filled and List.new constructors to core module docs 2016-08-04 13:28:41 +00:00
Bob Nystrom 2bb999127a docs: restructure embedding API docs into multi-page section with slots, lifecycle, and C interop guides 2016-05-16 15:09:14 +00:00
Bob Nystrom 909c242a03 chore: reorganize doc site structure by moving core docs under modules/ and removing category metadata
Restructure the documentation hierarchy to prepare for documenting additional built-in modules. Move all core library documentation from `doc/site/core/` to `doc/site/modules/core/`, rename `modules.markdown` to `modularity.markdown`, remove `^category` metadata lines from all affected pages, update cross-reference links to use relative paths under the new structure, and add a TODO placeholder to the Class class page.
2015-11-08 21:31:22 +00:00