There are tiny holes for orphan threads open when an exception is thrown (maybe asynchronically) just after creating a thread with e.g. outputThread and the restarter. These functions should instead be CPS transformed and automatically run their finalizers (namely cancellation), similar to async vs withAsync.
There are tiny holes for orphan threads open when an exception is thrown (maybe asynchronically) just after creating a thread with e.g.
outputThread
and the restarter. These functions should instead be CPS transformed and automatically run their finalizers (namely cancellation), similar toasync
vswithAsync
.