mirror of https://github.com/grpc/grpc-java.git
core: Remove "can't call transport listener from start()" restriction
This hasn't been needed sincef8f569e07, when InternalSubchannel stopped calling start() with a lock held. Note that also means no transport needs to return a Runnable (but some still are). I had noticed ine4e7f3a06that it was safe for InProcess to call the listener directly within start(), but I didn't notice this Javadoc that said it wasn't allowed.
This commit is contained in:
parent
0fcd8cc19f
commit
c5a63a16a7
|
|
@ -39,9 +39,7 @@ public interface ManagedClientTransport extends ClientTransport {
|
|||
/**
|
||||
* Starts transport. This method may only be called once.
|
||||
*
|
||||
* <p>Implementations must not call {@code listener} from within {@link #start}; implementations
|
||||
* are expected to notify listener on a separate thread or when the returned {@link Runnable} is
|
||||
* run. This method and the returned {@code Runnable} should not throw any exceptions.
|
||||
* <p>This method and the returned {@code Runnable} should not throw any exceptions.
|
||||
*
|
||||
* @param listener non-{@code null} listener of transport events
|
||||
* @return a {@link Runnable} that is executed after-the-fact by the original caller, typically
|
||||
|
|
|
|||
Loading…
Reference in New Issue