Repository navigation
Stop: a nan limit, the stop's own tasks and context, -0 and "--stop-limit -inf" (#81) - #82
Merged
Merged
Conversation
… after a break-in runs in main()'s context, -0 and "--stop-limit -inf" refused with the usual message (#81) - watch: a limit of nan set by code ends the watching thread (Event.wait(nan) returned at once: it spun), as 0 does. - finish: its stop task leaves own_tasks once done, and runs in the context main() runs in (run() passes it to the Runner and to finish), not a copy of the thread's. - stop_limit refuses -0; glued() joins "--stop-limit -inf" (two words, argparse's "expected one argument") so the value gets stop_limit's message.
… the thread ends (#81)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #81
Small follow-ups to the stop work in #80. A normal stop does not change.
finish()are dropped fromown_tasksonce they are done.run()starts after a break-in now runs in the same context asmain(). Before, it ran in a copy of the thread's context.--stop-limit -0is refused like any other negative number.--stop-limit -infgiven as two words now gets the usual "seconds from 0 (never) to 3600" message instead of argparse's "expected one argument".Each point has a test that fails without its fix.