Schwab-API-Python
Schwab-API-Python copied to clipboard
Checker threads
To check and update the access token my code calls a function in another module which creates a schwabdev.Client and returns an access_token after renewing the token if necessary. This works fine, but I find that every checker call creates a new thread and these are left running.
Is this a bug that should be addressed?
Schwabdev runs a checker thread to avoid checking everytime when a call is made, when you make multiple clients each one will create a new thread to keep tokens updated. This was not a use case that I considered - you could fork schwabdev and make your own modifications?