-
Notifications
You must be signed in to change notification settings - Fork 9
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 a "Stop" button when running #20
Comments
I have set up the website and successfully run it on my local machine. I will try this out soon.
Basically, The disabled prop of this button is set to the opposite of the |
Something like that, yes. |
When I start an infinite loop on the website, it becomes unresponsive and I can't click anything unless execution completes. |
Yes, the unresponsiveness should be dealt with first. I didn't even need a infinite loop. Simply printing numbers upto 100 didn't fetch a response in the output terminal. |
Let's say a long (or infinite) loop is running in WASM.
|
One way to deal with unresponsiveness is using web workers. |
If you make a mistake in the code and it does not finish quickly (say infinite loop or too large a loop), we need to add some button to be able to stop it.
One idea is to turn the Run button into a Stop button. Another idea is to make the Stop button to pop up next to it, and it will disappear when it finishes.
The text was updated successfully, but these errors were encountered: