From 68e02b6d56dd066360be781177f17af8de09aed5 Mon Sep 17 00:00:00 2001 From: Juan Pedro Moreno Date: Fri, 12 Jan 2018 12:16:28 +0100 Subject: [PATCH] Deprecates in favour of --- modules/async/async/shared/src/main/scala/async.scala | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/async/async/shared/src/main/scala/async.scala b/modules/async/async/shared/src/main/scala/async.scala index fd4fe438..5bcd0016 100644 --- a/modules/async/async/shared/src/main/scala/async.scala +++ b/modules/async/async/shared/src/main/scala/async.scala @@ -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) + } }