@bebetter said in How to Manage API Key Usage in Multi-Threaded Tasks with BAS:
Can we return the API key back to the resource after finishing a thread?
You don't need it. Just set the usage count of the resource when you create it.
Currently I have to specify how many accounts are in the txt file.


I want to make it dynamically detect total lines of the txt and set it as Thread Number, so that I don't have to specify "Account" field anymore, I just want to specify the txt file and make it automatically calculate how many threads to run according to how many lines there is in the TXT file.
Is that possible?
@swyzz123 said in thread number according to total lines of txt:
Currently I have to specify how many accounts are in the txt file.
I want to make it dynamically detect total lines of the txt and set it as Thread Number, so that I don't have to specify "Account" field anymore, I just want to specify the txt file and make it automatically calculate how many threads to run according to how many lines there is in the TXT file.
Is that possible?
yep https://community.bablosoft.com/topic/3521/лайфхаки-bas/27