Skip to content

Add Support for Async Functions in Decorators #2

Open
@abeltavares

Description

@abeltavares

Description

Extend pre_condition, post_condition, and invariant decorators to support asynchronous functions. This will make Pysertive suitable for modern Python applications using async/await.

Suggested Implementation

Update the decorators to handle async def functions. Ensure that the conditions are checked correctly in an asynchronous context.

Acceptance Criteria

  • pre_condition, post_condition, and invariant decorators support asynchronous functions.
  • Conditions are checked correctly for async functions.
  • Unit tests are written to ensure the async support works as expected.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions