mirror of
https://github.com/actix/actix-website
synced 2024-11-23 16:31:08 +01:00
Update code example for sec-5-arbiter.md (#329)
This commit is contained in:
parent
bf329481b0
commit
e67443f4e8
@ -119,7 +119,7 @@ fn main() {
|
||||
};
|
||||
|
||||
// Spawn the future onto the current Arbiter/event loop
|
||||
Arbiter::spawn(execution);
|
||||
Arbiter::current().spawn(execution);
|
||||
|
||||
// We only want to do one computation in this example, so we
|
||||
// shut down the `System` which will stop any Arbiters within
|
||||
|
Loading…
Reference in New Issue
Block a user