#ifndef _FC_WAIT_ANY_HPP_ #define _FC_WAIT_ANY_HPP_ #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 ); } } #endif // _FC_WAIT_ANY_HPP_