Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Thread-safety/usage advice #97

Closed
seslatero opened this issue Feb 14, 2017 · 1 comment
Closed

Thread-safety/usage advice #97

seslatero opened this issue Feb 14, 2017 · 1 comment
Labels

Comments

@seslatero
Copy link

seslatero commented Feb 14, 2017

Hi there,

Sorry if this is the wrong avenue to post this on, but here I go.

I want to use slacker in a django app, which will have at least 2 threads, and many components, and I'm wondering what the best way to use the Slacker class is in this case.

Should I use it as a singleton for the project? for the individual app? for each module? for each thread?

Interested in your thoughts.

EDIT: This is a 'question', but it won't let me set the labels.

@os
Copy link
Owner

os commented Dec 8, 2018

Hi @JF26, sorry for my late response. Slacker is thread-safe. You can create a single instance and use it across your project.

@os os closed this as completed Dec 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants