Change passing io output future from by reference to by value