1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:00:09 -07:00
go/api/next/56661.txt
Sameer Ajmani 8bec956360 context: add APIs for setting a cancelation cause when deadline or timer expires
Fixes #56661

Change-Id: I1c23ebc52e6b7ae6ee956614e1a0a45d6ecbd5b4
Reviewed-on: https://go-review.googlesource.com/c/go/+/449318
Run-TryBot: Sameer Ajmani <sameer@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-01-20 21:41:01 +00:00

3 lines
187 B
Plaintext

pkg context, func WithDeadlineCause(Context, time.Time, error) (Context, CancelFunc) #56661
pkg context, func WithTimeoutCause(Context, time.Duration, error) (Context, CancelFunc) #56661