From fb76c490c6246bc422386ebca9c7fabccc0ebf18 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Mon, 22 Jan 2018 20:10:05 -0800 Subject: [PATCH] mention tokio handle in guide --- build.rs | 1 + guide/src/qs_4.md | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/build.rs b/build.rs index 2346ab169..887444c68 100644 --- a/build.rs +++ b/build.rs @@ -25,6 +25,7 @@ fn main() { "guide/src/qs_10.md", "guide/src/qs_12.md", "guide/src/qs_13.md", + "guide/src/qs_14.md", ]); } else { let _ = fs::File::create(f); diff --git a/guide/src/qs_4.md b/guide/src/qs_4.md index 42afb9219..e7193ae55 100644 --- a/guide/src/qs_4.md +++ b/guide/src/qs_4.md @@ -235,3 +235,12 @@ fn main() { ``` Both methods could be combined. (i.e Async response with streaming body) + +## Tokio core handle + +Any actix web handler runs within properly configured +[actix system](https://actix.github.io/actix/actix/struct.System.html) +and [arbiter](https://actix.github.io/actix/actix/struct.Arbiter.html). +You can always get access to tokio handle via +[Arbiter::handle()](https://actix.github.io/actix/actix/struct.Arbiter.html#method.handle) +method.