Sets this's result to result and completes the task (see return_pointer for more discussion of exactly what this means).
result
a Task.
the bool result of a task function.