class Task {

  public <TContinuationResult> Task<TContinuationResult> onSuccess(
      final Continuation<TResult, TContinuationResult> continuation, Executor executor) {
    return onSuccess(continuation, executor, null);
  }

    Task();
  private  Task(TResult result);
  private  Task(boolean cancelled);

}