def set_nodelay(self, nodelay=None, interval=100, resend=0, nocwnd=False):
        """
        nodelay: False=disable; True=enable; default=False
        interval: internal update timer interval in millisec, default is 100ms
        resend: 0=disable fast resend; 1=enable fast resend; default=0
        nocwnd: False=normal congestion control;\
                True=disable congestion control; default=False
        """
        if nodelay is not None:
            self.nodelay = nodelay
            if nodelay:
                self.rx_minrto = IKCP_RTO_NDL
            else:
                self.rx_minrto = IKCP_RTO_MIN

        if interval >= 0:
            self.set_interval(interval)

        if resend >= 0:
            self.fastresend = resend

        if nocwnd is not None:
            self.nocwnd = nocwnd

        nodelay: False=disable; True=enable; default=False
        interval: internal update timer interval in millisec, default is 100ms
        resend: 0=disable fast resend; 1=enable fast resend; default=0
        nocwnd: False=normal congestion control;                True=disable congestion control; default=False
        
pycharm2020.1.3/script/core/common/rudp.py