Skip to content

Commit

Permalink
Deprecates .to to be replaced by .unsafeTo
Browse files Browse the repository at this point in the history
  • Loading branch information
juanpedromoreno committed Jan 12, 2018
1 parent 07db1f5 commit 9acae08
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/async/async/shared/src/main/scala/async.scala
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,11 @@ object async {

final class FutureOps[A](f: Future[A]) {

@deprecated("Use unsafeTo instead.", "0.5.4")
def to[F[_]](implicit AC: AsyncContext[F], E: ExecutionContext): F[A] = future2AsyncM[F, A](f)

def unsafeTo[F[_]](implicit AC: AsyncContext[F], E: ExecutionContext): F[A] = future2AsyncM[F, A](f)

}

}
Expand Down

0 comments on commit 9acae08

Please sign in to comment.