org.chromium.sdk/src/org/chromium/sdk/SyncCallback.java
changeset 2 e4420d2515f1
equal deleted inserted replaced
1:ef76fc2ac88c 2:e4420d2515f1
       
     1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
       
     2 // Use of this source code is governed by a BSD-style license that can be
       
     3 // found in the LICENSE file.
       
     4 
       
     5 package org.chromium.sdk;
       
     6 
       
     7 /**
       
     8  * Secondary callback that should be called after main callback has been
       
     9  * called; it gets called regardless of whether main callback  finished
       
    10  * normally or thrown an exception.
       
    11  * It helps to separate callback logic (which may fail) from multi-thread
       
    12  * synchronization (which shouldn't fail). Typically client may release
       
    13  * his semaphore in this callback.
       
    14  */
       
    15 public interface SyncCallback {
       
    16   /**
       
    17    * @param e an exception main callback raised or null if none is reported
       
    18    */
       
    19   void callbackDone(RuntimeException e);
       
    20 }