Implement AsyncTask::Wait() and make completion callbacks optional.