Instead of forbidding users to ever be able to initialise a new Runtime after all previously created runtimes were destroyed, we should provide a function shutdown to be called explicitly whenever the user want to call it.
The function would panic if there are still runtimes existing, and creating a new runtime after it was successfully called would panic too.
Instead of forbidding users to ever be able to initialise a new
Runtime
after all previously created runtimes were destroyed, we should provide a functionshutdown
to be called explicitly whenever the user want to call it.The function would panic if there are still runtimes existing, and creating a new runtime after it was successfully called would panic too.