Gets the result of this as a pointer, and transfers ownership of that value to the caller.
If the task resulted in an error, or was cancelled, then this will instead return null and set throws.
Since this method transfers ownership of the return value (or error) to the caller, you may only call it once.
this |
a Task |
the task result, or null on error |