Skip to content

Feature request: Idempotent decorator for asynchronous functions #4483

Closed as not planned
@esthermcmahon

Description

@esthermcmahon

Use case

Would love to be able to use the AsyncBatchProcessor and async_process_partial_response function along with the idempotency utility.

Solution/User Experience

def async_idempotent_function():
    def wrapper(func):
        @functools.wraps(func)
        async def wrapped(*args):
            return await func(*args)
        return wrapped
    return wrapper

Alternative solutions

No response

Acknowledgment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Closed

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions