The formatting was too messed up, I sent with ThunderBird :/ Here's the clean version
void RequestHandler(HTTPServerRequest req, HTTPServerResponse res){
alias ConcurrTuple = Tuple!(string, "name", bool, "auth", Variant[Variant], "dbrow");
SomeController ctl;
auto obj = concurrently!ConcurrTuple(
{ return redis.get!string("name"); }
toDelegate(&ctl.isAuth),
{
auto conn = pdb.lockConnection();
auto cmd = new PGCommand(conn, "SELECT * FROM users WHERE userid=" ~ params.uid);
auto result = cmd.executeQuery;
return result;
});
// unblock here
auto name = obj.name;
auto authentified = obj.auth;
auto userInfo = obj.dbrow;
}