Skip to content

Add "Stop" button #27

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

Merged
merged 3 commits into from
May 26, 2018
Merged

Add "Stop" button #27

merged 3 commits into from
May 26, 2018

Conversation

remo5000
Copy link
Contributor

I am unsure of how to manipulate the isRunning state, and ended up adding more cases to the reducer. Any inputs regarding this would be appreciated.

remo5000 added 3 commits May 23, 2018 11:13
When code is running (`isRunning == true`), Run button changes into a
Stop button. The reverse is true.

In addition, the soft block for async code execution, `put(actions.handleInterruptExecution())` was removed.
@remo5000 remo5000 requested review from evansb and ning-y May 23, 2018 04:40
@remo5000 remo5000 added the blocking Finishing this opens up other stuff label May 24, 2018
@remo5000 remo5000 mentioned this pull request May 24, 2018
Copy link

@evansb evansb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Stop button is implemented by simply interrupting the context (i.e isRunning set to false). This works on async scheduler only

@ning-y ning-y merged commit 85ba402 into master May 26, 2018
@ning-y ning-y deleted the interrupt-button branch May 26, 2018 07:58
@remo5000 remo5000 removed the blocking Finishing this opens up other stuff label May 26, 2018
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.

3 participants