Improve explanation comment as to why we're waiting ourselfs
This commit is contained in:
		| @@ -76,8 +76,9 @@ class WebSocketChannel: | |||||||
|         """ |         """ | ||||||
|  |  | ||||||
|         # This block only runs if the queue is full, it will wait |         # This block only runs if the queue is full, it will wait | ||||||
|         # until self.drain_timeout for the relay to drain the outgoing |         # until self.drain_timeout for the relay to drain the outgoing queue | ||||||
|         # queue |         # We can't use asyncio.wait_for here because the queue may have been created with a | ||||||
|  |         # different eventloop | ||||||
|         start = time.time() |         start = time.time() | ||||||
|         while self.queue.full(): |         while self.queue.full(): | ||||||
|             await asyncio.sleep(1) |             await asyncio.sleep(1) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user