ScalaConsultants/zio-slick-interop

Add an overload of ZIO.fromDBIO accepting a function taking an execution context

remiguittaut opened this issue · 0 comments

Some DBIOs need an execution context to be constructed, for example when flatMapping several DBIO actions. It is very simple to add an extra overload taking a function with an ExecutionContext as input argument.

It spares the developer from adding implicit val ec: ExecutionContext = Runtome.default.platform.executor.asEC in blocks.