I’d like to exit the running awaited function mid-execution.
All i’ve seen people do, is to throw new Exception (which you can handle after using try/catch), but i’d like to handle those separately.
I’d like to exit the running awaited function mid-execution.
All i’ve seen people do, is to throw new Exception (which you can handle after using try/catch), but i’d like to handle those separately.
SOLUTION: Use “return;” (for Task) and “return value;” of Type, for Task, works fine.