Another good approach as well is to consider everyting inside rayon_pool.install() as the main() function and do things in there for some weird simplicity. With this, one does not need to use another channel to get a value out of the closure.