Skip to content

Commit

Permalink
added code documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
onurhuseyincantay committed Jan 20, 2020
1 parent bd0440f commit d19e8c9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Sources/Hover/Hover.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public final class Hover {
/// - target: `NetworkTarget`
/// - type: Decodable Object Type
/// - urlSession: `URLSession`
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use Runloop.main
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQuee.main`
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
public func request<D, T>(
with target: NetworkTarget,
Expand Down Expand Up @@ -57,7 +57,7 @@ public final class Hover {
/// - Parameters
/// - target: `NetworkTarget`
/// - urlSession: `URLSession
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use Runloop.main`
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQuee.main`
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
public func request<T: Scheduler>(
with target: NetworkTarget,
Expand Down Expand Up @@ -89,7 +89,7 @@ public final class Hover {
/// - target: `NetworkTarget`
/// - type: Decodable Object Type
/// - urlSession: `URLSession`
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use Runloop.main
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQuee.main`
/// - subscriber: `Subscriber`
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
func request<D, S, T>(
Expand Down Expand Up @@ -130,7 +130,7 @@ public final class Hover {
/// - Parameters
/// - target: `NetworkTarget`
/// - urlSession: `URLSession`
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use Runloop.main
/// - scheduler: Threading and execution time helper if you want to run it on main thread just use `Runloop.main` or `DispatchQuee.main`
/// - subscriber: `Subscriber`
@available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, macCatalyst 13.0, *)
func request<S, T>(
Expand Down
2 changes: 1 addition & 1 deletion Sources/HoverTests/Test Source/TestClass.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ extension TestClass {
)
}
func fetchCommentsWithSubscriber(_ id: Int = 1) {
provider.request(with: TestTarget.fetchCommentsByPostId(postId: id), class: CommentsResponse.self, scheduler: RunLoop.main, subscriber: self.subscriber)
provider.request(with: TestTarget.fetchCommentsByPostId(postId: id), class: CommentsResponse.self, scheduler: DispatchQueue.main, subscriber: self.subscriber)
}
}

Expand Down

0 comments on commit d19e8c9

Please sign in to comment.