/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2021 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
/// schedule an async job call using a dialer; use CallJobHere macros instead
template <class Dialer>
-bool
+AsyncCall::Pointer
CallJob(int debugSection, int debugLevel, const char *fileName, int fileLine,
const char *callName, const Dialer &dialer)
{
AsyncCall::Pointer call = asyncCall(debugSection, debugLevel, callName, dialer);
- return ScheduleCall(fileName, fileLine, call);
+ ScheduleCall(fileName, fileLine, call);
+ return call;
}
#define CallJobHere(debugSection, debugLevel, job, Class, method) \