From 9acae08d059f3cea1364018bfec7ef3e53936fd2 Mon Sep 17 00:00:00 2001 From: Juan Pedro Moreno Date: Fri, 12 Jan 2018 12:16:28 +0100 Subject: [PATCH] Deprecates .to to be replaced by .unsafeTo --- 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) + } }