Full threadscriby·I wrote a module based on fibers to help with these sort of problems. Take a look at https://github.com/scriby/asyncblockView on HN