コード例 #1
0
 public void OnEvent(DisruptorEvent evt)
 {
     evt.Write(_stepFunc.Invoke(evt.Read <TStepIn>()));
 }
コード例 #2
0
            public void OnEvent(DisruptorEvent data, long sequence, bool endOfBatch)
            {
                var tcs = (TaskCompletionSource <TOut>)data.TaskCompletionSource;

                tcs.SetResult(data.Read <TOut>());
            }