Skip to content

Commit

Permalink
Merge pull request #207 from mcanlas/blocking
Browse files Browse the repository at this point in the history
Change delay to blocking on file io
  • Loading branch information
geirolz authored Oct 24, 2024
2 parents aa7d31e + 2fa5502 commit bddf636
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/effect/src/main/scala/cats/xml/effect/XmlLoader.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ object XmlLoader extends XmlLoaderInstances {
new XmlLoader[F] {
override def loadInputStreamResource(inputStream: => InputStream): Resource[F, XmlNode] =
Resource
.fromAutoCloseable(F.delay(inputStream))
.evalMap(is => F.defer(parser.parseInputStream(is)))
.fromAutoCloseable(F.blocking(inputStream))
.evalMap(parser.parseInputStream(_))
}
}
}
Expand Down

0 comments on commit bddf636

Please sign in to comment.