@@ -136,7 +136,7 @@ internal struct BufferedStream<Element> {
136136 @usableFromInline
137137 let storage : _BackPressuredStorage
138138
139- @inlinable
139+ @usableFromInline
140140 init ( storage: _BackPressuredStorage ) {
141141 self . storage = storage
142142 }
@@ -171,7 +171,7 @@ extension BufferedStream: AsyncSequence {
171171 @usableFromInline
172172 let storage : _BackPressuredStorage
173173
174- @inlinable
174+ @usableFromInline
175175 init ( storage: _BackPressuredStorage ) {
176176 self . storage = storage
177177 self . storage. iteratorInitialized ( )
@@ -191,7 +191,7 @@ extension BufferedStream: AsyncSequence {
191191 @usableFromInline
192192 var implementation : _Implementation
193193
194- @inlinable
194+ @usableFromInline
195195 init ( implementation: _Implementation ) {
196196 self . implementation = implementation
197197 }
@@ -237,7 +237,7 @@ internal struct _ManagedCriticalState<State>: @unchecked Sendable {
237237 @usableFromInline
238238 let lock : LockedValueBox < State >
239239
240- @inlinable
240+ @usableFromInline
241241 internal init ( _ initial: State ) {
242242 self . lock = . init( initial)
243243 }
@@ -252,7 +252,7 @@ internal struct _ManagedCriticalState<State>: @unchecked Sendable {
252252
253253@usableFromInline
254254internal struct AlreadyFinishedError : Error {
255- @inlinable
255+ @usableFromInline
256256 init ( ) { }
257257}
258258
@@ -289,7 +289,7 @@ extension BufferedStream {
289289 )
290290 }
291291
292- @inlinable
292+ @usableFromInline
293293 init ( internalBackPressureStrategy: _InternalBackPressureStrategy ) {
294294 self . _internalBackPressureStrategy = internalBackPressureStrategy
295295 }
@@ -329,7 +329,7 @@ extension BufferedStream {
329329 @usableFromInline
330330 let storage : _BackPressuredStorage
331331
332- @inlinable
332+ @usableFromInline
333333 init ( storage: _BackPressuredStorage ) {
334334 self . storage = storage
335335 }
@@ -359,7 +359,7 @@ extension BufferedStream {
359359 @usableFromInline
360360 var _backing : _Backing
361361
362- @inlinable
362+ @usableFromInline
363363 internal init ( storage: _BackPressuredStorage ) {
364364 self . _backing = . init( storage: storage)
365365 }
@@ -580,7 +580,7 @@ extension BufferedStream {
580580 return ( . init( storage: storage) , source)
581581 }
582582
583- @inlinable
583+ @usableFromInline
584584 init ( storage: _BackPressuredStorage ) {
585585 self . implementation = . backpressured( . init( storage: storage) )
586586 }
@@ -609,7 +609,7 @@ extension BufferedStream {
609609 /// - low: The low watermark where demand should start.
610610 /// - high: The high watermark where demand should be stopped.
611611 /// - waterLevelForElement: Function to compute the contribution to the water level for a given element.
612- @inlinable
612+ @usableFromInline
613613 init ( low: Int , high: Int , waterLevelForElement: ( @Sendable ( Element ) -> Int ) ? = nil ) {
614614 precondition ( low <= high)
615615 self . _low = low
@@ -618,7 +618,7 @@ extension BufferedStream {
618618 self . _waterLevelForElement = waterLevelForElement
619619 }
620620
621- @inlinable
621+ @usableFromInline
622622 mutating func didYield( elements: Deque < Element > . SubSequence ) -> Bool {
623623 if let waterLevelForElement = self . _waterLevelForElement {
624624 self . _current += elements. reduce ( 0 ) { $0 + waterLevelForElement( $1) }
@@ -630,7 +630,7 @@ extension BufferedStream {
630630 return self . _current < self . _high
631631 }
632632
633- @inlinable
633+ @usableFromInline
634634 mutating func didConsume( elements: Deque < Element > . SubSequence ) -> Bool {
635635 if let waterLevelForElement = self . _waterLevelForElement {
636636 self . _current -= elements. reduce ( 0 ) { $0 + waterLevelForElement( $1) }
@@ -642,7 +642,7 @@ extension BufferedStream {
642642 return self . _current < self . _low
643643 }
644644
645- @inlinable
645+ @usableFromInline
646646 mutating func didConsume( element: Element ) -> Bool {
647647 if let waterLevelForElement = self . _waterLevelForElement {
648648 self . _current -= waterLevelForElement ( element)
@@ -669,7 +669,7 @@ extension BufferedStream {
669669 }
670670 }
671671
672- @inlinable
672+ @usableFromInline
673673 mutating func didConsume( elements: Deque < Element > . SubSequence ) -> Bool {
674674 switch self {
675675 case . watermark( var strategy) :
@@ -679,7 +679,7 @@ extension BufferedStream {
679679 }
680680 }
681681
682- @inlinable
682+ @usableFromInline
683683 mutating func didConsume( element: Element ) -> Bool {
684684 switch self {
685685 case . watermark( var strategy) :
@@ -714,7 +714,7 @@ extension BufferedStream {
714714 }
715715 }
716716
717- @inlinable
717+ @usableFromInline
718718 init (
719719 backPressureStrategy: _InternalBackPressureStrategy
720720 ) {
@@ -1026,7 +1026,7 @@ extension BufferedStream {
10261026 @usableFromInline
10271027 var onTermination : ( @Sendable ( ) -> Void ) ?
10281028
1029- @inlinable
1029+ @usableFromInline
10301030 init (
10311031 backPressureStrategy: _InternalBackPressureStrategy ,
10321032 iteratorInitialized: Bool ,
@@ -1065,7 +1065,7 @@ extension BufferedStream {
10651065 @usableFromInline
10661066 var hasOutstandingDemand : Bool
10671067
1068- @inlinable
1068+ @usableFromInline
10691069 init (
10701070 backPressureStrategy: _InternalBackPressureStrategy ,
10711071 iteratorInitialized: Bool ,
@@ -1102,7 +1102,7 @@ extension BufferedStream {
11021102 @usableFromInline
11031103 var onTermination : ( @Sendable ( ) -> Void ) ?
11041104
1105- @inlinable
1105+ @usableFromInline
11061106 init (
11071107 iteratorInitialized: Bool ,
11081108 buffer: Deque < Element > ,
@@ -1188,7 +1188,7 @@ extension BufferedStream {
11881188 /// it is a customizable extension of the state machine.
11891189 ///
11901190 /// - Parameter backPressureStrategy: The back-pressure strategy.
1191- @inlinable
1191+ @usableFromInline
11921192 init (
11931193 backPressureStrategy: _InternalBackPressureStrategy
11941194 ) {
0 commit comments