quchen / amoeba

Amœba is a distributed network.
Other
18 stars 1 forks source link

CPS custom thread spawners #54

Open quchen opened 10 years ago

quchen commented 10 years ago

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.