agronholm / agronholm/anyio

Add receive_nowait() to all receive streams

Đang mở
#482 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
design enhancement
Ngôn ngữ chính
Python
Star
2.5k
Fork
260
Merge trung bình
2 ngày 8 giờ
Pull request đã merge (30 ngày)
19

Mô tả

Occasionally there is a use case where the code would like to receive all the data it can without waiting. The memory object stream has the `receive_nowait()` method for this purpose. I figured this could be easily added to socket streams too.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.