@doniyorieltss · Post #1907 · 30.01.2024 г., 18:50
Immigration has a major impact on society. What are the main reasons for immigration? To what consequences can it lead?#Task2
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #401 · 15 дек.
Функция asyncio.wait() это еще один способ вызвать множество асинхронных задач. Она работает в нескольких режимах. 1. Самый простой - ждем завершения всех задач async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(10)] done, pending = await asyncio.wait( tasks, return_when=asyncio.ALL_COMPLETED ) for task in done: try: print(task.result()) except Exception as e: print(e) Очень похоже на gather, но работает не так. ▫️возвращает не результаты, а два сета с объектами Task у которых можно забрать результат через task.result() если они в списке done ▫️не гарантирует порядок результатов так как оба объекта это set ▫️не выбрасывает исключение когда оно появляется, а сохраняет его в Task. Исключение появится когда попробуете забрать резултьтат. 2. Ждем завершения первой задачи, даже если там ошибка. async def main(): tasks = [asyncio.create_task(do_it(i)) for i in range(3)] done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_COMPLETED ) # в done может быть несколько задач! for task in done: try: print(task.result()) except Exception as e: print(f"Fail: {e}") # Оставшиеся задачи в pending, как правило, нужно отменить, иначе они будут продолжать работать for task in pending: task.cancel() В сете done будут таски которые успели завершится, причем как успешно так и нет. 3. До первой ошибки. Тоже самое, но с аргументом FIRST_EXCEPTION done, pending = await asyncio.wait( tasks, return_when=asyncio.FIRST_EXCEPTION ) Функция завершается как только первая задача упадет с ошибкой. Учтите, что в любом случае done вы можете обранужить несколько задач, как с ошибками так и успешные. ↗️ Полный листинг примеров здесь #async
Hashtags
Пребарај: #task2
@doniyorieltss · Post #1907 · 30.01.2024 г., 18:50
Immigration has a major impact on society. What are the main reasons for immigration? To what consequences can it lead?#Task2
Hashtags
@English_easyly_learn · Post #1102 · 23.08.2018 г., 17:47
✏️Task 2: The 5 types of essay questions. 1️⃣ Advantages and Disadvantages essay 2️⃣ Opinion Essays (Agree or Disagree) 3️⃣ Discussion essay (Discuss both views, often asks for your opinion) 4️⃣ Two part Question essay (or Direct Question Essay) 5️⃣ Problem Solution essay (sometimes called a Causes Solution Essay) 👌🏻Share this with your friends! and help them also IELTS effectively! #task2 @English_easyly_learn
Hashtags
@English_easyly_learn · Post #1101 · 23.08.2018 г., 17:46
✏️Task 2: You need to know these rules before writing task 2 essays! 👉In the Academic IELTS writing exam task 2, there are 5 types of questions and each of these have a slightly different approach, I meant a small difference! IELTS essays are discursive essays and not the same type of essay you would have to write at University for instance. ☝🏻There is a minimum word count of 250 words and no more than 5 body paragraphs in these essays. You need to analyse the question first, find the issues in the question, plan and organise ideas, write supporting points and specific examples, paraphrase well, give a good introduction and conclusion. There is a lot to do. 👌🏻Share this with your friends! and help them also IELTS effectively! #task2 @English_easyly_learn
Hashtags
@cambridgeieltsbooks · Post #4105 · 23.03.2024 г., 00:59
✅Writing Time 📝Writing task 2 insho savoli o'z ichida 3 qismga boʻlinadi va ular introduction(kirish) qismida quyidagicha o'zgartirilishi kerak. 🍇Background statement (umumiy insho mavzusi) 🍎Specific statement (aniq talab etilayotgan insho mavzusi) 🍓Question (insho savoli) ‼️Ana endi keling, insho kirish qismini qismma-qism yozib chiqaylik. 🍇 When a country develops its technology, traditional skills and ways of life die out.🔁With the development of technology, a nation loses its traditional skills and way of life. 🍎 It is pointless to try and keep them alive. 🔁Many believe that these become irrelevant and there is no use trying to maintain them. 🍓To what extent do you agree or disagree with this? 🔁I completely disagree, however, and will explain why I believe keeping a nation's traditional skills and lifestyle is important, despite the rise of new technologies. If you find it useful, don't forget to share with your friends ☺️ #writing#task2#IELTSprep ❤️Sharing is caring❤ ©️Channel:@cambridgeieltsbooks
Hashtags