Skip to content

Commit

Permalink
remove call_box()
Browse files Browse the repository at this point in the history
  • Loading branch information
xxyzz committed Nov 28, 2019
1 parent 81ebaa2 commit 9a5a1bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch20-03-graceful-shutdown-and-cleanup.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ impl Worker {
Message::NewJob(job) => {
println!("Worker {} got a job; executing.", id);
job.call_box();
job();
},
Message::Terminate => {
println!("Worker {} was told to terminate.", id);
Expand Down

0 comments on commit 9a5a1bf

Please sign in to comment.