File: context.go

package info (click to toggle)
irtt 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 600 kB
  • sloc: sh: 60; makefile: 9
file content (7 lines) | stat: -rw-r--r-- 139 bytes parent folder | download
1
2
3
4
5
6
7
package irtt

import "context"

func isContextError(err error) bool {
	return err == context.Canceled || err == context.DeadlineExceeded
}