mirror of
https://github.com/actix/actix-website
synced 2025-06-26 23:27:43 +02:00
Update code example for sec-5-arbiter.md (#329)
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user