Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support with keyword in session #451

Merged
merged 2 commits into from
Jun 29, 2021
Merged

Conversation

siyuan0322
Copy link
Collaborator

What do these changes do?

This PR enables with keyword in session, which can automatically release resourced when the context manager exits.
Moreover, use with will automatically set the session as the default session.

Two simple test cases has been added that can fully demonstrate its usage.

Related issue number

Fixes #393

@sighingnow sighingnow self-requested a review June 29, 2021 08:53
@siyuan0322 siyuan0322 merged commit e76c81d into alibaba:main Jun 29, 2021
@siyuan0322 siyuan0322 deleted the zsy/with branch June 29, 2021 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support use with keyword with session to enable automatically release resources.
2 participants