public static WriteTask New(Ukcp kcp) { WriteTask recieveTask = RECYCLER.Take(); recieveTask.kcp = kcp; return(recieveTask); }
protected internal void notifyWriteEvent() { if (_writeProcessing.CompareAndSet(false, true)) { var writeTask = WriteTask.New(this); _iMessageExecutor.execute(writeTask); } }