79356748

Date: 2025-01-15 00:30:35
Score: 1
Natty:
Report link

You can also use asyncio.to_thread

async def upload_stream(self, stream, bucket_name, key):
   await asyncio.to_thread(self.S3.put_object, Body=stream, Bucket=bucket_name, Key=key)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zakari Salifu