from growthbook import GrowthBook
import asyncio
attributes = {
“id”: “123"
}
gb = GrowthBook(
attributes = attributes,
api_host = “
https://cdn.growthbook.io”,
client_key = “sdk-3KJ57xtLk2d2Xia”,
streaming = True
)
async def main():
print(gb.is_on(“my-feature”)) # True
await asyncio.sleep(5) # Changed forced rule condition to “if id is equal 124"
print(gb.is_on(“my-feature”)) # False
asyncio.run(main())