protected void success ( T result ) { this . result = result ; this . completed = true ; for ( Callback < T , E > callback : toBeNotified ) { callback . success ( result ) ; } }
Sets a result and status as completed . Notifies all callbacks .