Skip to content

remove all deprecations #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 23, 2019
Merged
Show file tree
Hide file tree
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
6 changes: 0 additions & 6 deletions Sources/AsyncHTTPClient/HTTPClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -394,12 +394,6 @@ public class HTTPClient {
/// Event Loop will be selected by the library.
public static let indifferent = EventLoopPreference(.indifferent)

/// Library will try to use provided event loop if possible.
@available(*, deprecated, renamed: "delegate(on:)")
public static func prefers(_ eventLoop: EventLoop) -> EventLoopPreference {
return EventLoopPreference(.delegate(on: eventLoop))
}

/// The delegate will be run on the specified EventLoop (and the Channel if possible).
///
/// This will call the configured delegate on `eventLoop` and will try to use a `Channel` on the same
Expand Down
5 changes: 0 additions & 5 deletions Sources/AsyncHTTPClient/HTTPHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,6 @@ extension HTTPClient {
/// Response execution context. Will be created by the library and could be used for obtaining
/// `EventLoopFuture<Response>` of the execution or cancellation of the execution.
public final class Task<Response> {
@available(*, deprecated, renamed: "eventLoop")
public var currentEventLoop: EventLoop {
return self.eventLoop
}

/// The `EventLoop` the delegate will be executed on.
public let eventLoop: EventLoop

Expand Down