mirror of
https://github.com/actix/actix-web.git
synced 2024-12-21 07:36:43 +00:00
mention tokio handle in guide
This commit is contained in:
parent
3653c78e92
commit
fb76c490c6
2 changed files with 10 additions and 0 deletions
1
build.rs
1
build.rs
|
@ -25,6 +25,7 @@ fn main() {
|
||||||
"guide/src/qs_10.md",
|
"guide/src/qs_10.md",
|
||||||
"guide/src/qs_12.md",
|
"guide/src/qs_12.md",
|
||||||
"guide/src/qs_13.md",
|
"guide/src/qs_13.md",
|
||||||
|
"guide/src/qs_14.md",
|
||||||
]);
|
]);
|
||||||
} else {
|
} else {
|
||||||
let _ = fs::File::create(f);
|
let _ = fs::File::create(f);
|
||||||
|
|
|
@ -235,3 +235,12 @@ fn main() {
|
||||||
```
|
```
|
||||||
|
|
||||||
Both methods could be combined. (i.e Async response with streaming body)
|
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.
|
||||||
|
|
Loading…
Reference in a new issue