public function flush($eventName)
    {
        $result = $this->dispatch($eventName . self::QUEUE_NAME);
        // If result is an array then need to merge or will end up with array of arrays.
        if (is_array($result)) {
            $result = call_user_func_array('array_merge', $result);
        }

        return $result;
    }