I am trying to invoke two different functions(which take different arguments) after some event is triggered so that they continue processing in parallel rather than doing it