Skip to content

Closing a long running subscription - aclose() and GeneratorExit #752

Open
@jonsmirl

Description

@jonsmirl

In asgi.py I can see the call to aclose();
await subscriptions[operation_id].aclose()

So how do I catch this in my subscription source? This should generate a GeneratorExit exception. I can not figure out a way to catch that exception in my subscription source which would then signal my code to exit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    decision neededSounds like good idea, but will need closer scrutiny for final decision.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions