docs: add List.filled and List.new constructors to core module docs

This commit is contained in:
Bob Nystrom
2016-08-04 13:28:41 +00:00
parent bfb109473e
commit 5703a8dfa2
3 changed files with 20 additions and 6 deletions
+6 -6
View File
@@ -4,6 +4,12 @@ A lightweight coroutine. [Here][fibers] is a gentle introduction.
[fibers]: ../../concurrency.html
## Static Methods
### Fiber.**current**
The currently executing fiber.
### Fiber.**new**(function)
Creates a new fiber that executes `function` in a separate coroutine when the
@@ -14,12 +20,6 @@ fiber is run. Does not immediately start running the fiber.
System.print("I won't get printed")
}
## Static Methods
### Fiber.**current**
The currently executing fiber.
### Fiber.**suspend**()
Pauses the current fiber, and stops the interpreter. Control returns to the