YL
Size: a a a
YL
BG
async def first():
return await second()
def second():
return third()
def third():
return fourh()
async def fourh():
return 5
BG
s
BG
s
BG
s
BG
s
BG
s
M
TS
NK
NK
NK
session = aiohttp.ClientSession()
async with session.post('http://localhost:8020', params=params) as resp:
print('Inside post')
text = await resp.text()
text = text.split(":")
if text[0] == 'dec':
self.dec_counter(int(text[1]))
print("Closing session")
await session.close()
MG
MG
timeout –
a ClientTimeout settings structure, 5min
total timeout by default.
New in version 3.3.
NK