mirror of
https://github.com/langgenius/dify.git
synced 2026-02-01 00:21:14 +08:00
docs: clarify usage of close() method in PipeTransport docstring
This commit is contained in:
parent
4d81455a83
commit
0a97e87a8e
@ -9,6 +9,8 @@ class PipeTransport(Transport):
|
||||
one for reading and one for writing.
|
||||
|
||||
NOTE: r_fd and w_fd must be a pair created by os.pipe(). or returned from subprocess.Popen
|
||||
|
||||
NEVER FORGET TO CALL `close()` METHOD TO AVOID FILE DESCRIPTOR LEAKAGE.
|
||||
"""
|
||||
|
||||
def __init__(self, r_fd: int, w_fd: int):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user