janriemer,

@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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • mdbf
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • Youngstown
  • everett
  • cisconetworking
  • slotface
  • GTA5RPClips
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • modclub
  • JUstTest
  • osvaldo12
  • Durango
  • khanakhh
  • anitta
  • provamag3
  • ngwrru68w68
  • cubers
  • tester
  • ethstaker
  • megavids
  • normalnudes
  • Leos
  • lostlight
  • All magazines