Skip to content

Commit 29be0ad

Browse files
Lingling PengLingling Peng
authored andcommitted
remove async example in deprecation message
1 parent b2bba66 commit 29be0ad

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

synapseclient/client.py

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6061,23 +6061,6 @@ def get_membership_status(self, userid, team):
60616061
user_id="12345",
60626062
)
60636063
print(status)
6064-
6065-
# Alternative: Use async version for advanced use cases
6066-
import asyncio
6067-
6068-
async def get_membership_status():
6069-
# Get the team object
6070-
team = await Team.from_id_async(id="67890")
6071-
6072-
# Get user's membership status
6073-
status = await team.get_user_membership_status_async(
6074-
user_id="12345"
6075-
)
6076-
return status
6077-
6078-
# Run the async function
6079-
status = asyncio.run(get_membership_status())
6080-
print(status)
60816064
```
60826065
"""
60836066
teamid = id_of(team)

0 commit comments

Comments
 (0)