#pragma once #include #include namespace fc { template int wait_any( fc::future& f1, fc::future& f2, const microseconds& timeout_us = microseconds::max() ) { fc::vector p(2); p[0] = static_pointer_cast(f1.promise()); p[1] = static_pointer_cast(f2.promise()); return wait( fc::move(p), timeout_us ); } }