Code example for CountDownLatch

Methods: countDown

0
     
  private BroadcastReceiver onBroadcast=new BroadcastReceiver() {
    @Override 
    public void onReceive(Context ctxt, Intent i) { 
      results=i.getExtras(); 
      latch.countDown(); 
    } 
  }; 
}