The page usage.html makes it seem like ManagedResource.acquireAndGet does the same thing as the for comprehension, i.e. ManagedResource.foreach by describing acquireAndGet as "a convenience notation for those who don’t like using for comprehensions." Instead, foreach always returns Unit whereas acquireAndGet can return a value.