Skip to content

allow adding a unique name/context to Limits to aid context manager based ad-hoc debugging #5

@zsoldosp

Description

@zsoldosp

e.g.:

def my_function(*a, **kw):
    with SomeLimit(name='first', total=4): 
        ....
    with SomeLimit(name='second', total=4): 
        ....

so from the error message it's clear which one failed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions