Hello Team , a quick question regarding growthbook...
# announcements
d
Hello Team , a quick question regarding growthbook python SDK , should i assume the tracking callback if called on the same thread as when i check if feature is on , in other words in case of running an a/b experiment , should i assume that after calling
isOn
function , the tracking callback function should be already executed ?
f
Yes, that is how it is implemented today. In the future we might change the tracking callback to happen in a separate thread, so I wouldn't necessarily rely on this behavior. Do you have a specific use case you are trying to solve with this?
d
Yes specifically I want to call a python function that tells me directly if user is within the exposed users and also within with variant
f
Instead of the
isOn
method, there is an
evalFeature
method you can use that returns both the value (true or false) plus info about the experiment and variation. https://docs.growthbook.io/lib/python#using-features
d
aha that's super helpful Jeremy ! exactly what i need , thanks a lot