rl.close()


rl.close() 方法关闭 InterfaceConstructor 实例,并释放对 inputoutput 流的控制。当调用此方法时,将触发 'close' 事件。

🌐 The rl.close() method closes the InterfaceConstructor instance and relinquishes control over the input and output streams. When called, the 'close' event will be emitted.

调用 rl.close() 并不会立即停止 InterfaceConstructor 实例发出的其他事件(包括 'line')。

🌐 Calling rl.close() does not immediately stop other events (including 'line') from being emitted by the InterfaceConstructor instance.