scalaz / scalaz-nio

Performant, purely-functional, low-level, and unopinionated wrapper around Java NIO functionality

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Buffer uses IO.succeed when sync should be used

LGLO opened this issue · comments

Actions like final def limit: IO[Nothing, Int] = IO.succeed(buffer.limit) wrap mutable value during creation of IO. IO.successful should not be used to wrap mutable state of underlying Java buffer.