Function
writeTimeout
(ctx context.Context, timeout time.Duration, c *websocket.Conn, msg []byte)
Source from the content-addressed store, hash-verified
| 190 | } |
| 191 | |
| 192 | func writeTimeout(ctx context.Context, timeout time.Duration, c *websocket.Conn, msg []byte) error { |
| 193 | ctx, cancel := context.WithTimeout(ctx, timeout) |
| 194 | defer cancel() |
| 195 | |
| 196 | return c.Write(ctx, websocket.MessageText, msg) |
| 197 | } |
Tested by
no test coverage detected
Used in the wild real call sites across dependent graphs
searching dependent graphs…