Skip to content

NameResolver.Listener2 is underspecified #12218

@jdcormie

Description

@jdcormie
  • onResult2() now returns a Status but its javadoc API contract says nothing about what it would mean for an implementation to return an error.
  • ManagedChannelImpl's Listener2 demands that onResult2() be called from the synchronization context ... but this rule isn't mentioned anywhere in the API contract.
  • Listener2 exposes two methods for reporting errors: onError(Status) and a StatusOr<> field in ResolutionResult. But the API contract says nothing about the difference or why a caller would use one or the other.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions