agronholm / agronholm/anyio

Add receive_nowait() to all receive streams

Aperta
#482 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
design enhancement
Lingua principale
Python
Stelle
2.5k
Fork
260
Merge medio
1g 8h
PR unite (30g)
17

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.