-
Notifications
You must be signed in to change notification settings - Fork 443
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
with
keyword in session (#451)
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.
- Loading branch information
1 parent
9e99de7
commit e76c81d
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters