Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this SDK thread safe? #164

Open
genglinxiao opened this issue Oct 2, 2023 · 0 comments
Open

Is this SDK thread safe? #164

genglinxiao opened this issue Oct 2, 2023 · 0 comments

Comments

@genglinxiao
Copy link

I imagine someone had run into this already, but didn't find anything yet.
I'm trying to write a bot using this SDK and wondering is it possible to handle multiple thread to better handle concurrent conversations.
I would like to be able to register callback function for different person in different thread, for example, these 2 functions below:

await driver.subscribeToMessages();
await driver.reactToMessages(processMessages);

Is it OK to run them in dedicated threads? Or are there better ways?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant