riot-ml / riot

An actor-model multi-core scheduler for OCaml 5 🐫
https://riot.ml
Other
569 stars 36 forks source link

Terminating program when main process terminates #33

Closed diogomqbm closed 10 months ago

diogomqbm commented 10 months ago

We need to terminate the program when main process terminates. So, basically we check if it's main process when handling exited processes, if so, we shutdown everything.

diogomqbm commented 10 months ago

hey @leostera! Thanks for the quick response :pray:

I've done the changes you've requested for the test :+1:

I agree that we should implement a failure case in the future, I'll think about that on my next PR :wink:

leostera commented 10 months ago

Awesome @diogomqbm! 🙌🏼

Looking forward to that next PR ✨