-
-
Notifications
You must be signed in to change notification settings - Fork 33.5k
Description
#44943 implemented a fix for diagnostics channels being garbage-collectable without a strong reference being held to the channel object.
It also doc-deprecated using the subscription methods on the channel object directly. However, the fix did apply to those methods as well AFAICT, so the deprecation rationale seems not to be accurate. (Indeed, the top-level subscription methods are just a wrapper for channel(name).<method>(listener)
, which is essentially the exact formerly-unsafe pattern that the deprecation was inspired by.)
In addition, the subsequently-added TracingChannel
also implements subscription methods directly on the prototype, so removing these from channel objects would introduce asymmetry to the API.
Should DEP0163 be taken forward to a runtime deprecation, or should it be withdrawn?
cc: @Qard