Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stop() method to kill Iterator thread and Exception Handle to KeyboardInterrupt #40

Closed
wants to merge 6 commits into from

Conversation

jochasinga
Copy link
Contributor

As when creating a new Iterator via

>>> it = util.Iterator(board)
>>> it.start()

There was no way to kill the thread explicitly, and with KeyboardInterrupt the thread hangs. Thus, a method stop() was added:

>>> it.stop()

And self.setDaemon(True) was also added in the constructor of util.Iterator as per this issue.

@jochasinga jochasinga closed this Jul 17, 2015
@jochasinga jochasinga reopened this Jul 18, 2015
@jochasinga jochasinga closed this Jul 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant