void RegisterContinuation(ValueTaskAwaiter awaiter, int index)
 {
     awaiter.UnsafeOnCompleted(() =>
     {
         try
         {
             awaiter.GetResult();
         }
         catch (Exception ex)
         {
             exception = ExceptionDispatchInfo.Capture(ex);
             TryInvokeContinuation();
             return;
         }
         TryInvokeContinuationWithIncrement();
     });
 }
 void RegisterUnsafeOnCompleted(ValueTaskAwaiter awaiter)
 {
     awaiter.UnsafeOnCompleted(() => ContinuationWithCapture(awaiter));
 }