1
0
mirror of https://github.com/golang/go synced 2024-11-22 20:50:05 -07:00
go/api/next
Carlos Amedee 0531768b30 runtime: implement AddCleanup
This change introduces AddCleanup to the runtime package. AddCleanup attaches
a cleanup function to an pointer to an object.

The Stop method on Cleanups will be implemented in a followup CL.

AddCleanup is intended to be an incremental improvement over
SetFinalizer and will result in SetFinalizer being deprecated.

For #67535

Change-Id: I99645152e3fdcee85fcf42a4f312c6917e8aecb1
Reviewed-on: https://go-review.googlesource.com/c/go/+/627695
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
2024-11-16 03:26:04 +00:00
..
32936.txt crypto/tls: expose extensions presented by client to GetCertificate 2024-08-09 18:45:11 +00:00
36532.txt testing: add Context 2024-08-20 14:58:54 +00:00
51473.txt runtime: deprecate GOROOT 2024-08-20 22:49:59 +00:00
54670.txt hash/maphash: add WriteComparable and Comparable 2024-10-02 15:54:11 +00:00
61515.txt testing: implement testing.B.Loop 2024-09-20 19:09:41 +00:00
61901.txt bytes, strings: add Lines, SplitSeq, SplitAfterSeq, FieldsSeq, FieldsFuncSeq 2024-08-14 18:23:13 +00:00
62005.txt log/slog: add DiscardHandler 2024-11-14 22:27:09 +00:00
62384.txt net,net/netip: implement the encoding.(Binary|Text)Appender 2024-09-23 18:10:51 +00:00
62516.txt testing: add Chdir 2024-08-16 23:48:50 +00:00
63952.txt debug/elf: add SHT_GNU_VERDEF section parsing 2024-11-07 15:23:24 +00:00
66626.txt go/types: add go1.23 iterator methods for 10 exported types 2024-07-31 22:54:09 +00:00
67535.txt runtime: implement AddCleanup 2024-11-16 03:26:04 +00:00
67813.txt net/http: add HTTP2Config 2024-08-29 17:38:46 +00:00
67814.txt net/http: add Protocols field to Server and Transport 2024-11-05 22:14:59 +00:00