镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

The future of DEP0163 #59756

Description

@Renegade334

#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

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions