Skip to content

Commit

Permalink
remove Timer from context bounds in computeValue function
Browse files Browse the repository at this point in the history
  • Loading branch information
d1skort committed Jun 26, 2020
1 parent 7ce992a commit 9d2c03d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/timeout.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import tofu.syntax.monadic._
import scala.concurrent.duration._


def computeValue[F[_]: Monad: Timer](implicit timer: Timer[F]): F[String] =
def computeValue[F[_]: Monad](implicit timer: Timer[F]): F[String] =
timer.sleep(3.seconds) >> "value".pure[F]

def program[F[_]: Monad: Timeout: Timer]: F[String] =
Expand Down

0 comments on commit 9d2c03d

Please sign in to comment.