Many ThreadPoolExecutor Running

Hi,

I don’t think I’m discarding Thread correctly. Each time a new thread is opened.

import asyncio
import aiohttp
async def teste_get():
    async with aiohttp.ClientSession(headers={'accept' : 'application/json'}) as client_http:
        async with client_http.get("https://httpbin.org/json") as target:
            retorno = await target.json()
    await asyncio.sleep(2)
    async with aiohttp.ClientSession(headers={'accept' : 'application/json'}) as client_http:
        async with client_http.get("https://httpbin.org/json") as target:
            retorno = await target.json()
    await asyncio.sleep(2)
    async with aiohttp.ClientSession(headers={'accept' : 'application/json'}) as client_http:
        async with client_http.get("https://httpbin.org/json") as target:
            retorno = await target.json()
    await asyncio.sleep(2)
    async with aiohttp.ClientSession(headers={'accept' : 'application/json'}) as client_http:
        async with client_http.get("https://httpbin.org/json") as target:
            retorno = await target.json()
    await asyncio.sleep(2)
    async with aiohttp.ClientSession(headers={'accept' : 'application/json'}) as client_http:
        async with client_http.get("https://httpbin.org/json") as target:
            retorno = await target.json()
    await asyncio.sleep(2)
    async with aiohttp.ClientSession(headers={'accept' : 'application/json'}) as client_http:
        async with client_http.get("https://httpbin.org/json") as target:
            retorno = await target.json()
    await asyncio.sleep(2)

if __name__ == "__main__":
    asyncio.run(teste_get())