Skip to content

Commit

Permalink
Make EventLoopFuture.hopTo(eventLoop:) public again. (#963)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMage authored and Lukasa committed Apr 11, 2019
1 parent 02c11d9 commit ba7970f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/NIO/EventLoopFuture.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ extension EventLoopFuture {
/// - parameters:
/// - target: The `EventLoop` that the returned `EventLoopFuture` will run on.
/// - returns: An `EventLoopFuture` whose callbacks run on `target` instead of the original loop.
func hopTo(eventLoop target: EventLoop) -> EventLoopFuture<T> {
public func hopTo(eventLoop target: EventLoop) -> EventLoopFuture<T> {
if target === self.eventLoop {
// We're already on that event loop, nothing to do here. Save an allocation.
return self
Expand Down

0 comments on commit ba7970f

Please sign in to comment.