Skip to content

Deprecate implicit runner inits #247

Description

@sneakers-the-rat

Currently the initialization state can be implicit, calling process/run/iter without explicitly initializing the tube.

We should insist this is explicit:

as a contextmanager (preferred)

runner = SomeRunner(tube)
with runner:
    runner.process()
    # or
    for result in runner.iter():
        # ...
    # or
    runner.run()

or manually:

runner = SomeRunner(tube)
runner.init()
runner.process()
runner.deinit()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions