Python Forum
PEP 492 - Coroutines [async/await]
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
PEP 492 - Coroutines [async/await]
#3
I immediately thought it'd be cool with urllib2/requests, so you could setup some handlers and work with the pages whenever they finished downloading. ...and then I immediately found out requests isn't awaitable, so the first step would have to be creating a threaded wrapper around it, which... isn't the quick sort of fun I was looking for, lol
Reply


Messages In This Thread
PEP 492 - Coroutines [async/await] - by nilamo - Oct-05-2016, 04:06 PM
RE: PEP 492 - Coroutines [async/await] - by nilamo - Oct-05-2016, 05:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Async API request and NTLM authentication himanshuj89 0 1,377 Nov-05-2022, 02:06 PM
Last Post: himanshuj89
  Why does await only work in async? n4te99 0 1,679 Jan-19-2021, 09:46 AM
Last Post: n4te99
  Transcrypt Python to JavaScript compiler now supports async/await jacques_de_hooge 4 4,703 Aug-24-2017, 04:21 PM
Last Post: snippsat
  Exploring async/await, without knowing how they work ahead of time nilamo 3 11,475 May-07-2017, 03:18 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020