
|
If you were logged in you would be able to see more operations.
|
|
|
| Resolution Date: |
14/Nov/05 06:37 PM
|
|
IoFuture provides only blocking-way ('join' method) for user to find out the result of an I/O request. It would be great if users can specify a callback:
ConnectFuture future = connector.connect(...);
future.setCallback( new ConnectFuture.Callback() {
public void connectionEstablished( IoSession session ) {
}
public void connectionFailed( Throwable cause ) {
}
} );
There can be a race condition if the connection process ends before a user calls setCallback() method, but we can resolve this carefully so users don't notice any issue.
|
|
Description
|
IoFuture provides only blocking-way ('join' method) for user to find out the result of an I/O request. It would be great if users can specify a callback:
ConnectFuture future = connector.connect(...);
future.setCallback( new ConnectFuture.Callback() {
public void connectionEstablished( IoSession session ) {
}
public void connectionFailed( Throwable cause ) {
}
} );
There can be a race condition if the connection process ends before a user calls setCallback() method, but we can resolve this carefully so users don't notice any issue. |
Show » |
| There are no subversion log entries for this issue yet.
|
|