``` fx { val (rs: ListK<Nam...
# arrow
b
Copy code
fx {
            val (rs: ListK<NamedResource>) = service.loadNamedResources()
            rs.forEach { r ->
                val name: String = r.name
                val (ins: InputStream) = !effect { r.resource }
                val (contents: ByteArray) = !effect { service.loadContents(ins) }
                val (jsonNode: JsonNode) = !effect { service.parseContents(contents) }
                val id: String = service.getId(jsonNode).getOrElse { "" }
                !effect { <http://LOG.info|LOG.info>("{} -> {}", name, id) }
            }
        }.unsafeRunSync()
fails with StackOverflowError after processing 98
rs
(there are a total of 443 for it to go through.) Is there some sort of tail recursion method I'm missing?