mirror of
https://github.com/LiteyukiStudio/magicoca.git
synced 2025-12-17 18:07:50 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8a2f07fcf1 |
@@ -110,3 +110,9 @@ class Chan(Generic[T]):
|
||||
Returns:
|
||||
"""
|
||||
self.recv_conn, other.recv_conn = other.recv_conn, self.recv_conn
|
||||
|
||||
def __del__(self):
|
||||
"""
|
||||
Close the channel when the object is deleted.
|
||||
"""
|
||||
self.close()
|
||||
|
||||
Reference in New Issue
Block a user