TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #400 · 8 дек.

Три способа выполнить множество задач с asyncio Функция для примера: async def do_it(n): await asyncio.sleep(random.uniform(0.5, 1)) return n 1. Последовательный вызов async def main(): for i in range(100): result = await do_it(i) Такой вызов имеет смысл только тогда, когда результат одной задачи требуется для вызова следующей. Если они независимы, то это антипаттерн, так как аналогичен простому синхронному вызову по очереди. 2. Упорядоченный результат async def main(): tasks = [do_it(i) for i in range(100)] results = await asyncio.gather(*tasks) Выполняет корутины конкурентно и возвращает результат в виде списка. Полезен когда требуется получить результаты в том же порядке в котором задачи отправлены. 3. Результат по мере готовности tasks = [asyncio.create_task(do_it(i)) for i in range(100)] for cor in asyncio.as_completed(tasks): result = await cor Так же выполняет корутины конкурентно, но не гарантирует порядок. Результат возвращается по мере готовности, каждый отдельно. Полезен когда нужно обработать любой ответ как можно скорее. #async

Hashtags

Резултати

Пронајдени 76 слични објави

Пребарај: #dessert

当前筛选 #dessert清除筛选
Dishes.Cooking.Food

@cookingdish · Post #930 · 22.08.2025 г., 13:05

Fondant au chocolat! Ingredients: 200 g 70% dark chocolate 2 cubes white chocolate 2 eggs 2 egg yolks 100 g butter - softened 2 ½ tbsp all purpose flour 1 tbsp cocoa powder 4 ½ tbsp. granulated sugar pinch of salt For serving: Powdered sugar Blueberries and strawberries #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #927 · 20.08.2025 г., 13:01

Crepes with banana and Nutella! Ingredients: *3 eggs *a pinch of salt *2 tbs sugar as desired *2 cup of warm milk *1 cup of all purpose flour *2 tbs of butter For serving: *banana *Nutella *powdered sugar #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #919 · 12.08.2025 г., 13:04

Nectarine Tart!🍑🥮 Ingredients: *6 Nectarines (hard) *1 tbsp Butter *Maple syrup For Tart (2 crust): *2.5 cup Flour *Pinch of salt *4 tbsp Sugar *Butter (0.5 Ib. / 225 gr.) *1 tbsp Vinegar *4 tbsp Water #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #850 · 04.06.2025 г., 11:01

Apple Strudel Recipe🍏🥧 Ingredients: - 250g all-purpose flour 🌾 - 100ml water 💧 - 1 egg 🥚 - 20g vegetable oil 🛢 - 1 pinch of salt 🧂 For the filling: - 4 Granny Smith apples, peeled and sliced 🍏 - Lemon juice 🍋 - 100g dried cranberries 🫐 - 100g breadcrumbs 🍞 - 50g butter (melted, for brushing the dough and sautéing the breadcrumbs) 🧈 - 50g candied pecans, chopped 🌰 - 1 tsp cinnamon 🌟 - 70g sugar 🍬 - 1 scoop of ice cream 🍨 #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #705 · 07.02.2025 г., 14:05

🇬🇧Ingredients for Cauliflower Crunch Chocolate Mousse 🌿For the Mousse: - 🥦 400 g cauliflower - 🍫 150 g vegan chocolate - 🍯 3 tbsp agave syrup 🌿For Toppings: - 🍫 Cacao powder - 🍫 Chopped chocolate #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #687 · 29.01.2025 г., 14:06

🇬🇧Ingredients for Stuffed Dates 🌿Main Ingredients: - 🍇 12 Medjool dates - 🧀 Brie cheese, sliced into small pieces - 🍖 Prosciutto, 12 strips - 🌰 12 walnuts - 🍯 2 tbsp honey - 🌿 Thyme leaves #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #681 · 26.01.2025 г., 14:02

🇬🇧Ingredients for Rugelach 🌿Dough: - 🧈 200 g butter - 🍶 200 g sour cream - 🌾 400 g all-purpose flour - 🌼 1 tsp vanilla - 🥄 1 tsp baking powder 🌿For the Filling: - 🍬 150 g dulce de leche - 🍏 150 g apple paste - 🌰 50 g walnuts - 🍬 100 g brown light sugar - 🌿 1 tsp cinnamon - 🍋 2 tbsp lemon juice #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #674 · 23.01.2025 г., 14:02

🇬🇧Ingredients for Almond Blueberry Teacakes 🌿For the Teacakes: - 🧈 190 g unsalted butter, at room temperature - 🍬 190 g granulated sugar - 🍋 1 tbsp lemon zest - 🥚 4 large eggs - 🌰 190 g almond flour - 🌾 45 g all-purpose flour - 🥄 1/4 tsp baking powder - 🧂 1/8 tsp salt - 🍋 1/4 cup lemon juice - 🫐 200 g fresh blueberries 🌿For the Icing: - 🍬 160 g confectioners' sugar - 🍋 2 1/2 tbsp lemon juice #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #663 · 17.01.2025 г., 14:04

🇬🇧Ingredients for Apple Strudel 🌿Dough: - 🌾 250 g all-purpose flour - 💧 100 ml water - 🥚 1 egg - 🛢 20 g vegetable oil - 🧂 1 pinch of salt 🌿Filling: - 🍏 4 Granny Smith apples, peeled and sliced - 🍋 Lemon juice - 🍇 100 g dried cranberries - 🍞 100 g breadcrumbs - 🧈 50 g butter (melted, for brushing the dough and sautéing the breadcrumbs) - 🌰 50 g candied pecans, chopped - 🌿 1 tsp cinnamon - 🍬 70 g sugar - 🍨 1 scoop of ice cream #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #661 · 16.01.2025 г., 14:05

🇬🇧Ingredients for Walnut Cookie 🌿Dough: - 🌾 450 g all-purpose flour - 🧈 200 g melted butter - 🥚 2 eggs - 🍬 150 g sugar - 🧂 1/4 tsp salt - 🌼 Vanilla to taste - 🥄 1 tsp baking powder 🌿Filling: - 🥛 1 can boiled condensed milk - 🌰 Roasted almonds (or any nuts) #dessert @dishes

Hashtags

Dishes.Cooking.Food

@cookingdish · Post #483 · 18.08.2024 г., 15:56

Mini Cheesecakes with Cherry 🍒 Ingredients: *800g. Farmer cheese *2 Eggs *4 Tbsp Sugar *4 Tbsp Semolina *2 Tbsp All Purpose Flour *Vanilla powder *Pinch of salt *400g. Fresh Cherry For filling: *200 g. Cream cheese *1 Egg yolk *40g. Sugar *Butter #dessert @dishes

Hashtags

123•••67
ПретходнаСтраница 1 од 7Следна