@ Nullable public synchronized List < ProducerContextCallbacks > cancelNoCallbacks ( ) { if ( mIsCancelled ) { return null ; } mIsCancelled = true ; return new ArrayList <> ( mCallbacks ) ; }
Marks this ProducerContext as cancelled .