Skip to content

Commit

Permalink
Remove references to EventLoop
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-fowler committed Aug 10, 2023
1 parent 343e6e9 commit c6a79b8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions SotoCore.docc/SotoCore/SotoCore.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ SotoCore is the underlying driver for executing requests for the Soto Swift SDK

### Exported (NIOCore)

- ``EventLoop``
- ``EventLoopGroup``
- ``EventLoopFuture``
- ``ByteBuffer``
- ``ByteBufferAllocator``
- ``TimeAmount``
Expand Down
9 changes: 4 additions & 5 deletions Sources/SotoCore/Credential/DeferredCredentialProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public final class DeferredCredentialProvider: CredentialProvider {

/// Create `DeferredCredentialProvider`.
/// - Parameters:
/// - eventLoop: EventLoop that getCredential should run on
/// - context: Context including HTTP client and logger
/// - provider: Credential provider to wrap
public init(context: CredentialProviderFactory.Context, provider: CredentialProvider) {
let description = "\(type(of: self))(\(provider.description))"
Expand All @@ -47,10 +47,9 @@ public final class DeferredCredentialProvider: CredentialProvider {
try await self.provider.shutdown()
}

/// Return credentials. If still in process of the getting credentials then return future result of `startupPromise`
/// otherwise return credentials store in class
/// - Parameter eventLoop: EventLoop to run off
/// - Returns: EventLoopFuture that will hold credentials
/// Return credentials
/// - Parameter logger: Logger
/// - Returns: Credentials
public func getCredential(logger: Logger) async throws -> Credential {
try await withTaskCancellationHandler {
try await self.getCredentialTask.value
Expand Down
3 changes: 0 additions & 3 deletions Sources/SotoCore/Exports.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@

@_exported import struct NIOCore.ByteBuffer
@_exported import struct NIOCore.ByteBufferAllocator
@_exported import protocol NIOCore.EventLoop
@_exported import class NIOCore.EventLoopFuture
@_exported import protocol NIOCore.EventLoopGroup
@_exported import struct NIOCore.TimeAmount

@_exported import struct NIOHTTP1.HTTPHeaders
Expand Down

0 comments on commit c6a79b8

Please sign in to comment.