1
0
mirror of https://github.com/actix/actix-website synced 2025-02-17 10:13:31 +01:00

Update code example for sec-5-arbiter.md (#329)

This commit is contained in:
Hieu Nguyen 2023-08-06 14:55:51 -05:00 committed by GitHub
parent bf329481b0
commit e67443f4e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,7 +119,7 @@ fn main() {
}; };
// Spawn the future onto the current Arbiter/event loop // 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 // We only want to do one computation in this example, so we
// shut down the `System` which will stop any Arbiters within // shut down the `System` which will stop any Arbiters within