@TestFlightX · Post #34440 · 03.11.2024 г., 15:18
#BROKENITHM#CONTROLLER https://testflight.apple.com/join/U6kwvETm
Hashtags
TGINSIGHT SIMILAR POSTS
Изворен канал @pythonotes · Post #425 · 20 апр.
Недавно делал быстрый прототип асинхронного приложения в котором требовалось вызывать много синхронного кода. Да, я знаю, что это не лучший дизайн, но нужно было быстрое решение на один процесс и без очередей. Поэтому я выполнял код в потоках. Выглядело это примерно так: from fastapi.concurrency import run_in_threadpool async def execute(data: DataRequest) -> DataResponse: try: result = await run_in_threadpool(sync_function, data) return DataResponse(data=result) except Exception as e: return DataResponse( error=str(e), success=False, ) В общем работает нормально. Для всех вызовов под капотом используется общий тредпул, всё работает предсказуемо. Но потребовалось изменить количество запускаемых в пуле потоков (по умолчанию создается 40 воркеров). Так как дело происходит с FastAPI, делается это через lifespan используя настройки anyio: import anyio @asynccontextmanager async def lifespan(app: FastAPI): limiter = anyio.to_thread.current_default_thread_limiter() limiter.total_tokens = 100 yield # если вдруг нужно вернуть обратно limiter.total_tokens = 40 Зачем менять количество воркеров? - уменьшить, если оперативки мало (один тред занимает ~8мб) - увеличить чтобы выдержать нагрузку Если есть предложения получше при тех же вводных - предлагайте😉 #async
Hashtags
Пребарај: #controller
@TestFlightX · Post #34440 · 03.11.2024 г., 15:18
#BROKENITHM#CONTROLLER https://testflight.apple.com/join/U6kwvETm
Hashtags
@TFGames · Post #1672 · 27.12.2023 г., 07:53
#SUPER#DUPER#CONTROLLER https://testflight.apple.com/join/Tl0UibRY
Hashtags
@TestFlightX · Post #34721 · 27.11.2024 г., 15:46
#CONTROLLER#FOR#HOMEKIT https://testflight.apple.com/join/d13q9b1q
Hashtags
@githubtrending · Post #15125 · 07.09.2025 г., 11:30
#cplusplus#controller#gamepad#gamepad_api#games#gaming#keyboard_emulation AntiMicroX lets you use a gamepad to control your computer by mapping gamepad buttons to keyboard keys, mouse actions, scripts, or macros. It works on Linux and Windows, supports many gamepads, and allows you to create multiple profiles for different apps or games. This makes it easier to play games that don’t support controllers or to control desktop apps with a gamepad, improving comfort and accessibility. You can install it easily on various systems, including Windows, Linux (via Flatpak, AppImage, or package managers), and customize it to fit your needs. It’s open-source and free to use. https://github.com/AntiMicroX/antimicrox
@CryptoM · Post #64847 · 10.04.2026 г., 03:50
🚀 Overview of SBTI's 28 Personality Types PANews posted on X (formerly Twitter) about the 28 distinct personality types identified by SBTI. These include the 'Controller' who excels in task management and situation handling, and the 'ATM-er' who invests time and emotional value. The 'Dior-s' represents a self-deprecating narrative under pressure, while the 'BOSS' is goal-oriented with strong organizational skills. The 'Thanker' leans towards positive feedback and gratitude, whereas the 'Oh-No' personality anticipates risks and negative outcomes. The 'GoGo' is action-driven, and the 'Sexy' emphasizes style and attraction. The 'Lover' is emotionally invested, and the 'Mum' is nurturing and concerned. The 'Fake' wears a social mask, and the 'OJBK' is conflict-averse. The 'Malo' resonates with the working class, while the 'Joker' uses humor to mask vulnerability. The 'WOC!' is highly reactive, and the 'Thinker' is analytical. The 'Shit' is cynical but often cleans up messes, while the 'ZZZZ' strategically disconnects. The 'Poor' is resource-conscious, and the 'Monk' is restrained and detached. The 'IMSB' is self-deprecating, and the 'Solo' is independent. The 'FUCK' is direct and rebellious, while the 'Dead' feels drained. The 'IMFW' has a low self-assessment, and the 'HHHH' finds humor first. The 'Drunk' is a hidden personality, and the 'Kanye' remains mysterious. #SBTI#PersonalityTypes#Controller#ATM#Dior#BOSS#Thanker#OhNo#GoGo#Sexy#Lover#Mum#Fake#OJBK#Malo#Joker#WOC#Thinker#Shit#ZZZZ#Poor#Monk#IMSB#Solo#FUCK#Dead#IMFW#HHHH#Drunk#Kanye