Here is another solution to described problems: Niko’s moro ( https://github.com/nikomatsakis/moro/ ). It allows one to spawn futures in parallel (using scope.spawn), thus preventing many deadlocks, and it the same time referencing local variables! (When you poll one of those futures started using scope.spawn, you automatically poll all other futures.)
Here is another solution to described problems: Niko’s moro ( https://github.com/nikomatsakis/moro/ ). It allows one to spawn futures in parallel (using
scope.spawn
), thus preventing many deadlocks, and it the same time referencing local variables! (When you poll one of those futures started usingscope.spawn
, you automatically poll all other futures.)