loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
  • Ptt 大爆卦
  • Async_to_sync
  • 離開本站
你即將離開本站

並前往https://stackguides.com/questions/59232278/django-channels-error-you-cannot-use-asynctosync-in-the-same-thread-as-an-async

you cannot use AsyncToSync in the same thread as an async ...

I think you need to replace this calls: await async_to_sync(self.channel_layer.group_add)( self.room_group_name, self.channel_name ) await ...

確定! 回上一頁

查詢 「Async_to_sync」的人也找了:

  1. Asgiref
  2. You cannot call this from an async context - use a thread or sync_to_async
  3. Django async
  4. Django async task
  5. Django ASGI
  6. Django asyncio
  7. Django thread
  8. Daphne Django

關於我們

pttman

pttman Muster

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿