mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
Updated Timeouts (markdown)
parent
2deeb9f642
commit
b6e07a38aa
@ -1,7 +1,7 @@
|
||||
# Timeouts and Deadlines
|
||||
|
||||
To abandon synchronous calls that run too long, use the select statement with time.After:
|
||||
```
|
||||
```go
|
||||
import "time"
|
||||
|
||||
c := make(chan error, 1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user