88
99class SlackRTMApi (Envoy ):
1010 def __init__ (self , debug = False , token = None , slack_client_instance = None , base_url = 'https://api.botanalytics.co/v1/' ,
11- callback = None , async = False ):
11+ callback = None , is_async = False ):
1212 """
1313 :param debug: bool
1414 Enables logging
@@ -29,7 +29,7 @@ def __init__(self, debug=False, token=None, slack_client_instance=None, base_url
2929 raise ValueError ('Slack instance is not provided!' )
3030 self .__slack_client = slack_client_instance
3131 self ._inform ('Logging enabled for SlackRTMApi...' )
32- self .__async = async
32+ self .__async = is_async
3333 if self .__async :
3434 self .__executor_service = ThreadPoolExecutor (max_workers = 2 )
3535 self .__executor_service .submit (self .__initialize )
@@ -140,7 +140,7 @@ def __validate(payload):
140140
141141class SlackEventApi (Envoy ):
142142 def __init__ (self , debug = False , token = None , slack_token = None , base_url = 'https://api.botanalytics.co/v1/' ,
143- callback = None , async = False ):
143+ callback = None , is_async = False ):
144144 """
145145 :param debug: bool
146146 Enables logging
@@ -160,7 +160,7 @@ def __init__(self, debug=False, token=None, slack_token=None, base_url='https://
160160 raise ValueError ('Slack token is not provided!' )
161161 self .__slack_token = slack_token
162162 self ._inform ('Logging enabled for SlackEventApi...' )
163- self .__async = async
163+ self .__async = is_async
164164 if self .__async :
165165 self .__number_of_workers = multiprocessing .cpu_count () * 2
166166 if self .__number_of_workers == 0 :
0 commit comments