4 ms·
They're not equivalent if doSomething might throw and you don't want to catch it.
by Jasper_ 7y ago
They're not equivalent if doSomething might throw and you don't want to catch it.
- brlewis 7y agoRight, which goes back to the question shtylman asked about why doSomething couldn't be part of the try block. I'm tossing this form out there in case it helps. People sometimes forget that await can go wherever an expression goes.