Skip to content

Commit

Permalink
monix-bio-blocking: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
wodomierz committed Jun 28, 2022
1 parent e7bf476 commit c2107ec
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ abstract class BlockingUtils {
def asTask[T](blockingCode: => T): Task[T] =
Task.eval(blockingCode).executeOn(ioScheduler, forceAsync = true)

def asIO[A, B](blockingCode: => Either[A, B]): IO[A, B] = IO.deferTotal {
IO.fromEither(blockingCode)
}.executeOn(ioScheduler, forceAsync = true)
def asIO[A, B](blockingCode: => Either[A, B]): IO[A, B] =
IO.deferTotal(IO.fromEither(blockingCode)).executeOn(ioScheduler, forceAsync = true)

def await[T](future: Future[T]): T =
await(future, defaultTimeout)
Expand Down

0 comments on commit c2107ec

Please sign in to comment.