/// <summary> /// 执行通道已注册到Eventloop事件 /// </summary> public Task fireOnChannelRegister(TaskCompletionSource promise) { Execute(() => { alloc = NewByteBufAlloc(); pipeline.SetAlloc(alloc); if (eventloop.Alloc == null) { eventloop.SetAlloc(alloc); } pipeline.fireChannelRegister(); }); return(promise.Task); }