Azure / azure-functions-python-worker

Python worker for Azure Functions.
http://aka.ms/azurefunctions
MIT License
331 stars 100 forks source link

feat: support for async sdk types #1495

Open hallvictoria opened 1 month ago

hallvictoria commented 1 month ago

Description

In order to support aio blob client types, the decode() method needs to be async. This is currently not supported, because the from_incoming_proto() method in the worker, where decode() is called, is a sync call.

This changes from_incoming_proto() to be an async method instead.

Tests are added for the new async blob client types to test this change. These new tests will fail until a new blob extension version with the aio types is released.

Fixes #


PR information

Quality of Code and Contribution Guidelines