-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
196: concurrency: update shared resource examples r=andre-richter a=geomatsi Hi all, This PR suggests the following updates for the section on concurrency: 1. Use lazy_static macro to declare shared resources Suggested example of shared resource declaration does not compile neither on stable (edition 2018) nor on nightly with the following error: "error[E0015]: calls in statics are limited to constant functions, tuple structs and tuple variants" 2. Add example of mutable references to shared resources Regards, Sergey Co-authored-by: Sergey Matyukevich <geomatsi@gmail.com>
- Loading branch information
Showing
1 changed file
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters