Source File
reader.go
Belonging Package
github.com/gotd/td/syncio
package syncioimport ()// Reader is synchronized io.Reader.type Reader struct {r io.Readermux sync.Mutex}// NewReader creates new Reader.func ( io.Reader) *Reader {return &Reader{r: }}// Read implements io.Reader.func ( *Reader) ( []byte) ( int, error) {.mux.Lock(), = .r.Read().mux.Unlock()return}
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |