Skip to content

Commit

Permalink
Added whenDone() alias to better show intentions
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-zaitsev committed May 18, 2017
1 parent a59fc15 commit 37d2b6f
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,13 @@ public void run() {
});
}

/**
* Alias for {@link #whenAvailable(Callback)}.
*/
public void whenDone(@NonNull final Callback<T> callback) {
whenAvailable(callback);
}

private void notifyCallbackOnMainThread(final T result,
final Callback<T> callback) {
MAIN_THREAD_HANDLER.post(new Runnable() {
Expand Down

0 comments on commit 37d2b6f

Please sign in to comment.