Skip to content

Stop: small follow-ups from the last check of #80 #81

Done

Description

@Dyotson

Left from the last independent check of #80 (none affects a normal stop):

  1. If code (not the command line) sets the stop limit to nan, the watching thread spins: min(nan, 1.0) is nan and Event.wait(nan) returns at once. A math.isfinite guard in watch closes it. The command line already refuses nan.
  2. own_tasks is never pruned (one task per break-in try).
  3. finish() runs the stop task in a copy of the thread's context instead of the Runner's. Nothing depends on this today.
  4. -0 is accepted as 0; --stop-limit -inf given as two words gets argparse's "expected one argument".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority: 5

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions