+
Wren lives
+ on GitHub
+ — Made with ❤ by
+ Bob Nystrom and
+ friends.
+
+
+
+
+
+
diff --git a/doc/site/index.markdown b/doc/site/index.markdown
index c0f9853e..24539766 100644
--- a/doc/site/index.markdown
+++ b/doc/site/index.markdown
@@ -51,7 +51,7 @@ involved][contribute]!
[perf]: performance.html
[classes]: classes.html
[fibers]: concurrency.html
-[embedding]: embedding-api.html
+[embedding]: embedding
[started]: getting-started.html
[browser]: http://ppvk.github.io/wren-nest/
[contribute]: contributing.html
diff --git a/doc/site/modules/core/fiber.markdown b/doc/site/modules/core/fiber.markdown
index 99583d48..da2e66fc 100644
--- a/doc/site/modules/core/fiber.markdown
+++ b/doc/site/modules/core/fiber.markdown
@@ -25,13 +25,17 @@ The currently executing fiber.
Pauses the current fiber, and stops the interpreter. Control returns to the
host application.
-To resume execution, the host application will need to invoke the interpreter
-again. If there is still a reference to the suspended fiber, it can be resumed.
+Typically, you store a reference to the fiber using `Fiber.current` before
+calling this. The fiber can be resumed later by calling or transferring to that
+reference. If there are no references to it, it is eventually garbage collected.
+
+Much like `yield()`, returns the value passed to `call()` or `transfer()` when
+the fiber is resumed.
### Fiber.**yield**()
Pauses the current fiber and transfers control to the parent fiber. "Parent"
-here means the last fiber that was started using `call` and not `run`.
+here means the last fiber that was started using `call` and not `transfer`.
:::wren
var fiber = Fiber.new {
@@ -46,8 +50,8 @@ here means the last fiber that was started using `call` and not `run`.
When resumed, the parent fiber's `call()` method returns `null`.
-If a yielded fiber is resumed by calling `call()` or `run()` with an argument,
-`yield()` returns that value.
+If a yielded fiber is resumed by calling `call()` or `transfer()` with an
+argument, `yield()` returns that value.
:::wren
var fiber = Fiber.new {
@@ -57,8 +61,8 @@ If a yielded fiber is resumed by calling `call()` or `run()` with an argument,
fiber.call() // Run until the first yield.
fiber.call("value") // Resume the fiber.
-If it was resumed by calling `call()` or `run()` with no argument, it returns
-`null`.
+If it was resumed by calling `call()` or `transfer()` with no argument, it
+returns `null`.
If there is no parent fiber to return to, this exits the interpreter. This can
be useful to pause execution until the host application wants to resume it
diff --git a/doc/site/style.scss b/doc/site/style.scss
index c33cc6b6..e15074a5 100644
--- a/doc/site/style.scss
+++ b/doc/site/style.scss
@@ -277,13 +277,16 @@ footer {
span.c1, span.cm { color: mix($code-color, $code-bg, 60%); }
// Keywords.
- span.k, span.kd, span.kc, span.nb { color: hsl(200, 70%, 50%); }
+ span.k, span.kd, span.kc, span.kt, span.nb { color: hsl(200, 70%, 50%); }
// Names.
span.vg { color: hsl(180, 70%, 35%); }
span.vi { color: hsl(90, 80%, 35%); }
span.vc { color: hsl(130, 60%, 40%); }
+ // C function name.
+ span.nf { color: hsl(180, 60%, 40%); }
+
// Numbers.
span.m, span.mi, span.mf { color: hsl(90, 40%, 50%); }
diff --git a/doc/site/template.html b/doc/site/template.html
index 89efafa2..0c338f6b 100644
--- a/doc/site/template.html
+++ b/doc/site/template.html
@@ -45,7 +45,7 @@
reference
@@ -85,7 +85,7 @@
|