janriemer, 23 days ago @chriskrycho I know, some time has passed between your question above and this toot, but I hope it is helpful nonetheless: notgull has an excellent blog post about it - maybe it can give you some inspiration: https://notgull.net/why-not-threads/ They specifically mention the example that async/await facilitates adding a timeout to an existing (async) operation. Trying to do this with threads is apparently much more involved.
@chriskrycho I know, some time has passed between your question above and this toot, but I hope it is helpful nonetheless:
notgull has an excellent blog post about it - maybe it can give you some inspiration:
https://notgull.net/why-not-threads/
They specifically mention the example that async/await facilitates adding a timeout to an existing (async) operation.
Trying to do this with threads is apparently much more involved.