Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public struct NIOThrowingAsyncSequenceProducer<
/// The actual sequence which should be passed to the consumer.
public let sequence: NIOThrowingAsyncSequenceProducer

@usableFromInline
@inlinable
internal init(
source: Source,
sequence: NIOThrowingAsyncSequenceProducer
Expand Down Expand Up @@ -218,6 +218,7 @@ public struct NIOThrowingAsyncSequenceProducer<

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
extension NIOThrowingAsyncSequenceProducer: AsyncSequence {
@inlinable
public func makeAsyncIterator() -> AsyncIterator {
AsyncIterator(storage: self._internalClass._storage)
}
Expand All @@ -234,7 +235,8 @@ extension NIOThrowingAsyncSequenceProducer {
@usableFromInline
internal let _storage: Storage

fileprivate init(storage: Storage) {
@inlinable
init(storage: Storage) {
self._storage = storage
self._storage.iteratorInitialized()
}
Expand All @@ -253,7 +255,8 @@ extension NIOThrowingAsyncSequenceProducer {
@usableFromInline
internal let _internalClass: InternalClass

fileprivate init(storage: Storage) {
@inlinable
init(storage: Storage) {
self._internalClass = InternalClass(storage: storage)
}

Expand Down Expand Up @@ -309,7 +312,7 @@ extension NIOThrowingAsyncSequenceProducer {
self._internalClass._storage
}

@usableFromInline
@inlinable
internal init(storage: Storage, finishOnDeinit: Bool) {
self._internalClass = .init(storage: storage, finishOnDeinit: finishOnDeinit)
}
Expand Down Expand Up @@ -422,7 +425,7 @@ extension NIOThrowingAsyncSequenceProducer {
@usableFromInline
internal let _state: NIOLockedValueBox<State>

@usableFromInline
@inlinable
internal func _setDidSuspend(_ didSuspend: (@Sendable () -> Void)?) {
self._state.withLockedValue {
$0.didSuspend = didSuspend
Expand All @@ -434,7 +437,7 @@ extension NIOThrowingAsyncSequenceProducer {
self._state.withLockedValue { $0.stateMachine.isFinished }
}

@usableFromInline
@inlinable
internal init(
backPressureStrategy: Strategy,
delegate: Delegate
Expand Down Expand Up @@ -928,7 +931,7 @@ extension NIOThrowingAsyncSequenceProducer {
/// Indicates that the yielded elements have been dropped.
case returnDropped

@usableFromInline
@inlinable
init(
shouldProduceMore: Bool,
continuationAndElement: (CheckedContinuation<Element?, Error>, Element)? = nil
Expand Down
Loading