Hi,
i don't even know if the subject makes any sense :)
What i want to achieve is: instead of making:
auto v_a = async( &load , queryA );
auto v_b = async( &load , queryB );
auto v_c = async( &load , queryC );
( async is a function from vibe and returns a "Future" - see
http://vibed.org/api/vibe.core.concurrency/async for the async )
i want to something like this:
WHAT_TYPE[] futures;
futures ~= async( &load , queryA );
futures ~= async( &load , queryB );
futures ~= async( &load , queryC );
And then collect the results somwhere later like:
foreach(WHAT_TYPE future ; futures)
{
writeln( future.getResult() );
}
The Problem is, i dont know what type WHAT_TYPE is / i don“t know
how to build a loopable something of futures.