loader
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

屬於你的大爆卦
pttman

pttman Muster

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

並前往https://overcoder.net/q/665653/%D0%BA%D0%B0%D0%BA-%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%B8%D1%82%D1%8C-%D0%B3%D1%80%D1%83%D0%BF%D0%BF%D0%BE%D0%B2%D0%BE%D0%B5-%D1%81%D0%BE%D0%BE%D0%B1%D1%89%D0%B5%D0%BD%D0%B8%D0%B5-%D0%BA%D0%B0%D0%BD%D0%B0%D0%BB%D0%BE%D0%B2-2x-%D0%B8%D0%B7-%D0%B7%D0%B0%D0%B4%D0%B0%D1%87%D0%B8-django-celery-3

Как отправить групповое сообщение каналов 2.x из задачи ...

def connect(self): async_to_sync(self.channel_layer.group_add( self.room_name, ... get_channel_layer() async_to_sync(channel_layer.group_send)( room_name, ...

確定! 回上一頁

查詢 「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

屬於你的大爆卦

聯終我們

聯盟網站

熱搜事件簿