public static < U > SimpleInstrumentationContext < U > whenCompleted ( BiConsumer < U , Throwable > codeToRun ) { return new SimpleInstrumentationContext <> ( null , codeToRun ) ; }
Allows for the more fluent away to return an instrumentation context that runs the specified code on instrumentation step completion .