Похожие чаты

ANyway of mixing two runtimes? I am trying to use

actixweb which requires an async main with #[actix_web::main] macro, but also want to use tokio_postgres which requires #[tokio::main].

Given that actixweb uses tokio, I thought it shouldn't matter which I put in the main function, but problem is errors are thrown if you pick either on the other. EG: if a pick actix_web::main, all tokio_postgres async calls fail. and if I choose tokio_main actix_web complains of not having detected a system running.

2 ответов

11 просмотров

I think you can use tokio runtime for artix

Brian- Автор вопроса
// AlenPaulVarghese //
I think you can use tokio runtime for artix

How? actixweb refuses to run when I put #[tokio::main]

Похожие вопросы

Обсуждают сегодня

А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
Вопрос я правильно понимаю что в коде newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v } getArrowMap есть функция типа k -> Maybe v, если да, то не понимаю задач...
Fedor
61
I am honored to report that all the deliverables for the BCHFAQ Flipstarter Phase 1 have been completed. I appreciate the opportunity I've had to put all this together using t...
fixthetracking
14
Is there any new news from Kadena? The price is very suppressed.
HAKAN TECİMEN
27
Как Вы считаете нормально ли в двадцатых годах 21 века в ВУЗах Российской Федерации обучать студентов работе с TASM? Не слишком ли это "архаично"? (Если оффтоп или флейм для э...
Spiker01
52
Продолжая диалог про свифт в проде – сейчас возник вопрос в активном наборе бекендеров. В основном в нашей компании мы фанаты Java Spring и полностью ей довольны. Однако найм ...
Guseyn
27
Hello everyone! I have CHZ coins in the BEP2 network, what should I do to change the network, since Binance stops entering coins in this network???
Ts. Ts.
22
Комрады, хотел уточнить. Проперть в OnDestroy юнита-хозяина по-прежнему доступна? И еще уточнение: finalization юнита наступает раньше или позже OnDestroy?
Ed Doc
48
Читаю сейчас [нет, уже больше не читаю!] курсовую о Булгакове, написанную, похоже, с помощью ChatGPT. Это удивительный психоделический опыт. Текст в основном написан в стиле б...
✨ Uni [🌊 В отпуске]
1
Tell me how to solve this problem: I transferred the xtz token to the “trust W” wallet, I wanted to do staking. but as a result, the coins just lie on the wallet (they are not...
German
13
Карта сайта