daniel-p-gonzalez / eople

Actor-model based concurrency in a reactive programming language.
MIT License
17 stars 2 forks source link

Implement process error propagation #24

Open daniel-p-gonzalez opened 7 years ago

daniel-p-gonzalez commented 7 years ago

Allow monitoring of processes for failure.

pid = SomeProcess()
error_message = pid->on_error()

when error_message:
    print("Process exited with error: " + to_string(error_message))
end

# normal exit case
exit_message = pid->on_exit()

when exit_message:
    print("Process exited normally with message: " + to_string(exit_message))
end
daniel-p-gonzalez commented 7 years ago

WIP in topic_exceptions