go18.go 685 B

12345678910111213141516171819202122
  1. // Copyright 2016 The Go Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style
  3. // license that can be found in the LICENSE file.
  4. // +build go1.8
  5. package context
  6. import (
  7. "context" // standard library's context, as of Go 1.7
  8. )
  9. // A Context carries a deadline, a cancelation signal, and other values across
  10. // API boundaries.
  11. //
  12. // Context's methods may be called by multiple goroutines simultaneously.
  13. type Context => context.Context
  14. // A CancelFunc tells an operation to abandon its work.
  15. // A CancelFunc does not wait for the work to stop.
  16. // After the first call, subsequent calls to a CancelFunc do nothing.
  17. type CancelFunc => context.CancelFunc