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

TGINSIGHT SIMILAR POSTS

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

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

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

Пребарај: #ebolavirusdisease

当前筛选 #ebolavirusdisease清除筛选

The CASE DEFINITION for #EbolaVirusDisease can be found on our website. Download and read for definitions of: ✅Suspected cases, ✅Probable case and ✅Laboratory confirmed cases of #EbolaVirusDisease 🔗https://ncdc.gov.ng/themes/common/docs/protocols/288_1630509239.pdf

The risk of importation of the #EbolaVirusDisease into Nigeria is HIGH. Healthcare workers & the general public are urged to maintain a high index of suspicion. 📜Read our public health advisory for measures to prevent the importation of #EVD: https://ncdc.gov.ng/news/423/public-health-advisory-following-declaration-of-ebola-virus-disease-outbreak-in-uganda

Based on available data, the overall risk of importation of the #EbolaVirusDisease and the impact on the health of Nigerians has been assessed as HIGH. 📜Read our public health advisory for measures to prevent the importation of #EVD: https://ncdc.gov.ng/news/423/public-health-advisory-following-declaration-of-ebola-virus-disease-outbreak-in-uganda

#NCDCUpdate We have published an #EbolaVirusDisease care kit for incoming travellers from a country with ongoing transmission of #Ebola. The care kit includes guides to monitor your temperature and symptoms. Download & share via https://ncdc.gov.ng/themes/common/docs/protocols/300_1669297182.pdf #StaySafeStayHealthy

Common Viral Haemorrhagic Fevers #VHFs include #LassaFever, #EbolaVirusDisease, #YellowFever, #DengueFever, #MarburgFever and #CrimeanCongoHaemorrhagicFever. What are the #InfectionPreventionandControl practices that need to be in place in the management of VHFs? 🔗Download our National Guideline on #IPC for #VHF https://ncdc.gov.ng/themes/common/docs/protocols/111_1579986179.pdf