We use a tcs to handle the translation of a Unity Coroutine to a Task.
We shouldn't cancel, complete or set an exception on the tcs if it has already been transitioned. This can happen, pretty easily actually if an exception occurs from the network and then the user tries to cancel it the request, or vice versa.
We use a
tcs
to handle the translation of a Unity Coroutine to aTask
.We shouldn't cancel, complete or set an exception on the
tcs
if it has already been transitioned. This can happen, pretty easily actually if an exception occurs from the network and then the user tries to cancel it the request, or vice versa.