There's no method user can wait for the message (or buffer) until it is flushed out to channel actually. We could create an interface similar to Future in Java 5 so that users can wait until or check if the request is done.
We could also apply this mechanism to close instead of specifying a boolean parameter.
Description
There's no method user can wait for the message (or buffer) until it is flushed out to channel actually. We could create an interface similar to Future in Java 5 so that users can wait until or check if the request is done.
We could also apply this mechanism to close instead of specifying a boolean parameter.