From e67443f4e8c9d5e4f38a48b14efded2c7b80a54e Mon Sep 17 00:00:00 2001 From: Hieu Nguyen <76720778+hieunguyent12@users.noreply.github.com> Date: Sun, 6 Aug 2023 14:55:51 -0500 Subject: [PATCH] Update code example for sec-5-arbiter.md (#329) --- docs/actix/sec-5-arbiter.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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