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

Implement an "end script execution" feature #13

Open
JoaaoVerona opened this issue May 15, 2016 · 0 comments
Open

Implement an "end script execution" feature #13

JoaaoVerona opened this issue May 15, 2016 · 0 comments

Comments

@JoaaoVerona
Copy link
Owner

Right now, there is no way to totally end a script execution. This proposal is to implement a feature which lets end the script execution and all of it's created asynchronous containers.

Definition:

end

or

end()

(see below)

Things to note:

  • Should this be a component or a function? Although it seems more logical to have it as a function, have in mind that similar features, like break and continue are treated as components.

Example usage:

using std

println("Reading signals...")

while true {
  signal = readSignal()

  if signal == 0 {
    exit # OR exit()
  }
  else {
    println("Signal: " + signal)
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant