@@ -625,8 +625,8 @@ extension NIOThrowingAsyncSequenceProducer {
625625                case  . suspendTask: 
626626                    // It is safe to hold the lock across this method
627627                    // since the closure is guaranteed to be run straight away
628-                     return  try   await  withCheckedThrowingContinuation  { 
629-                         ( continuation:  CheckedContinuation < Element ? ,  any  Error > )  in 
628+                     return  try   await  withUnsafeThrowingContinuation  { 
629+                         ( continuation:  UnsafeContinuation < Element ? ,  any  Error > )  in 
630630                        let  ( action,  callDidSuspend)  =  unsafe. withValueAssumingLockIsAcquired  { 
631631                            let  action  =  $0. stateMachine. next ( for:  continuation) 
632632                            let  callDidSuspend  =  $0. didSuspend !=  nil 
@@ -723,7 +723,7 @@ extension NIOThrowingAsyncSequenceProducer {
723723            case  streaming( 
724724                backPressureStrategy:  Strategy , 
725725                buffer:  Deque < Element > , 
726-                 continuation:  CheckedContinuation < Element ? ,  Error > ? , 
726+                 continuation:  UnsafeContinuation < Element ? ,  Error > ? , 
727727                hasOutstandingDemand:  Bool , 
728728                iteratorInitialized:  Bool 
729729            ) 
@@ -916,13 +916,13 @@ extension NIOThrowingAsyncSequenceProducer {
916916            /// Indicates that the continuation should be resumed and
917917            /// ``NIOThrowingAsyncSequenceProducer/Source/YieldResult/produceMore`` should be returned.
918918            case  resumeContinuationAndReturnProduceMore( 
919-                 continuation:  CheckedContinuation < Element ? ,  Error > , 
919+                 continuation:  UnsafeContinuation < Element ? ,  Error > , 
920920                element:  Element 
921921            ) 
922922            /// Indicates that the continuation should be resumed and
923923            /// ``NIOThrowingAsyncSequenceProducer/Source/YieldResult/stopProducing`` should be returned.
924924            case  resumeContinuationAndReturnStopProducing( 
925-                 continuation:  CheckedContinuation < Element ? ,  Error > , 
925+                 continuation:  UnsafeContinuation < Element ? ,  Error > , 
926926                element:  Element 
927927            ) 
928928            /// Indicates that the yielded elements have been dropped.
@@ -931,7 +931,7 @@ extension NIOThrowingAsyncSequenceProducer {
931931            @usableFromInline  
932932            init ( 
933933                shouldProduceMore:  Bool , 
934-                 continuationAndElement:  ( CheckedContinuation < Element ? ,  Error > ,  Element ) ?   =  nil 
934+                 continuationAndElement:  ( UnsafeContinuation < Element ? ,  Error > ,  Element ) ?   =  nil 
935935            )  { 
936936                switch  ( shouldProduceMore,  continuationAndElement)  { 
937937                case  ( true ,  . none) : 
@@ -1040,7 +1040,7 @@ extension NIOThrowingAsyncSequenceProducer {
10401040        enum  FinishAction  { 
10411041            /// Indicates that the continuation should be resumed with `nil` and
10421042            /// that ``NIOAsyncSequenceProducerDelegate/didTerminate()`` should be called.
1043-             case  resumeContinuationWithFailureAndCallDidTerminate( CheckedContinuation < Element ? ,  Error > ,  Failure ? ) 
1043+             case  resumeContinuationWithFailureAndCallDidTerminate( UnsafeContinuation < Element ? ,  Error > ,  Failure ? ) 
10441044            /// Indicates that nothing should be done.
10451045            case  none
10461046        } 
@@ -1094,7 +1094,7 @@ extension NIOThrowingAsyncSequenceProducer {
10941094            case  callDidTerminate
10951095            /// Indicates that the continuation should be resumed with a `CancellationError` and
10961096            /// that ``NIOAsyncSequenceProducerDelegate/didTerminate()`` should be called.
1097-             case  resumeContinuationWithCancellationErrorAndCallDidTerminate( CheckedContinuation < Element ? ,  Error > ) 
1097+             case  resumeContinuationWithCancellationErrorAndCallDidTerminate( UnsafeContinuation < Element ? ,  Error > ) 
10981098            /// Indicates that nothing should be done.
10991099            case  none
11001100        } 
@@ -1273,7 +1273,7 @@ extension NIOThrowingAsyncSequenceProducer {
12731273        } 
12741274
12751275        @inlinable  
1276-         mutating  func  next( for continuation:  CheckedContinuation < Element ? ,  Error > )  ->  NextForContinuationAction  { 
1276+         mutating  func  next( for continuation:  UnsafeContinuation < Element ? ,  Error > )  ->  NextForContinuationAction  { 
12771277            switch  self . _state { 
12781278            case  . initial: 
12791279                // We are transitioning away from the initial state in `next()`
0 commit comments