Skip to content

Commit

Permalink
Fi
Browse files Browse the repository at this point in the history
  • Loading branch information
sjaanus committed Sep 19, 2024
1 parent ad1dd17 commit 1c877b9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions frontend/src/component/onboarding/sdkSnippets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ var settings = new UnleashSettings()
Unleash unleash = new DefaultUnleash(config);`,
Python: `from UnleashClient import UnleashClient
import time
import asyncio
client = UnleashClient(
url="<YOUR_API_URL>",
Expand Down Expand Up @@ -219,12 +219,9 @@ export const checkFlagCodeSnippets: Record<SdkName, string> = {
Rust: ``,
'.NET': ``,
Java: ``,
Python: `try:
while True:
print(client.is_enabled("<YOUR_FLAG>"))
time.sleep(1)
except KeyboardInterrupt:
client.destroy()`,
Python: `while True:
print(client.is_enabled("<YOUR_FLAG>"))
asyncio.run(asyncio.sleep(1))`,
JavaScript: ``,
React: ``,
Vue: ``,
Expand Down

0 comments on commit 1c877b9

Please sign in to comment.