RecipesCatalogScalaRecipesConcurrencyOn this pageConcurrency Recipes Avoid Thread.sleep Avoid blocking calls (Await.result/Await.ready) Prefer custom ExecutionContext over global Synchronize mutable shared state