public void startAsync ( ) { Thread thread = new Thread ( new Runnable ( ) { @ Override public void run ( ) { try { start ( ) ; } catch ( Exception e ) { LOG . error ( "Failed to connect to kubernetes: " + e , e ) ; } } } , "Jenkins X PipelineClient Thread" ) ; thread . start ( ) ; }
Starts listening in a background thread to avoid blocking the calling thread