diff --git a/docs/actix/sec-5-arbiter.md b/docs/actix/sec-5-arbiter.md index 4196554..d117724 100644 --- a/docs/actix/sec-5-arbiter.md +++ b/docs/actix/sec-5-arbiter.md @@ -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