Conversation
…nt session or internally created client session
|
hi @jnsougata could you explain (with use case code) how this behavior is better? |
Let's say I am making a discord bot using aiohttp. So I will already be having an For example: async def setup_hook(self) -> None:
deta = Deta(os.getenv('DETA_TOKEN'))
await deta.connect(session=self.http._HTTPClient__session, loop=self.loop)
self.db = deta.base('01PIXEL')
self.drive = deta.drive('PixeL_@11223344') |
|
@jnsougata, thank you for the additional useful input! |
|
i'm merging this into the |
Previously it was just creating the client session internally. There's no option to use external session. Now as session is an optioal arg user may pass in an external session otherwise it will create it's own session automatically.