OpenNos.GameObject.ClientSession.SendPacketAfterWait C# (CSharp) Method

SendPacketAfterWait() public method

public SendPacketAfterWait ( string packet, int Millisecond ) : void
packet string
Millisecond int
return void
        public void SendPacketAfterWait(string packet, int Millisecond)
        {
            if (!IsDisposing)
            {
                Observable.Timer(TimeSpan.FromMilliseconds(Millisecond))
                .Subscribe(
                 o =>
                 {
                     SendPacket(packet);
                 });
            }
        }