Skip to content

move_on_ and fail_ functions should accept shield as a keyword argument #3052

Closed
@agnesnatasya

Description

@agnesnatasya

Support a simpler syntax for:

async with trio.move_on_after(1) as scope:
  scope.shield = True

as a one-liner:

async with trio.move_on_after(1, shield=True) as scope:
  ...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions